IBM ISERIES SC41-5210-04 User Manual

Page 228

Advertising
background image

1. On the command line of the OS/400 Main Menu, type the DSPOBJD command as shown on the

following display and press the Enter key. This creates the file named

QRYFILE and puts it in the

library QGPL.

Note: When you type

*ALL for the OBJTYPE parameter, you must include a space after *ALL or you

will receive an error message. You must type in the entire command exactly as it appears on
the display that follows.

MAIN

OS/400 Main Menu

System:

RCH38342

Select one of the following:

1. User tasks

2. Office tasks

3. General systemtasks

4. Files, libraries, and folders

5. Programming

6. Communications

7. Define or change the system

8. Problemhandling

9. Display a menu

90. Sign off

Selection or command

===> DSPOBJD OBJ(QGPL/*ALL) OBJTYPE(*ALL ) OUTPUT(*OUTFILE) OUTFILE(QGPL/QRYFIL

E)

F3=Exit

F4=Prompt

F9=Retrieve

F12=Cancel

F13=User support

F23=Set initial menu

(C) COPYRIGHT IBM CORP. 1980, 1991.

2. Type

WRKQRY on the command line and press the Enter key.

MAIN

OS/400 Main Menu

System:

RCH38342

Select one of the following:

1. User tasks

2. Office tasks

3. General systemtasks

4. Files, libraries, and folders

5. Programming

6. Communications

7. Define or change the system

8. Problemhandling

9. Display a menu

90. Sign off

Selection or command

===> WRKQRY

F3=Exit

F4=Prompt

F9=Retrieve

F12=Cancel

F13=User support

F23=Set initial menu

3. The Work with Queries display is shown. On this display, choose option 1 (Create). Then name your

query by typing a name in the Query prompt, and specify the library where your query will be stored
by typing a name in the Library prompt. Press the Enter key.

216

Query for iSeries Use V5R2

Advertising