Common AS/400 Commands
DSPMSG Displays messages in queue
DSPMSGD Displays description of messages, ie CPF messages
WRKMSGF QCPFMSG Displays contents of MONMSG file
WRKUSRPRF - Can work with specified user's profile
WRKSBMJOB *JOB Displays my jobs for the current session
WRKACTJOB Displays all active jobs
WRKUSRJOB Displays list of my jobs to work with
Work with an object. Use *ALLUSR in qualified
WRKOBJ
name to skip Q libraries
WRKSPLF Displays spool files
WRKOUTQ Displays members in specified OUTQ
DISPLIB Displays contents of specified library
Allows addition and deletion of libraries to and from
EDTLIBL
list
ADDLIBLE Library Name Add library to current list
STRPDM Start PDM
STRDBG Start Debug
ADDBKP Add a break point and variables to monitor in debug
RMVBKP Remove a break point in debug
ENDDBG End Debug
Start DBU (Database Utility) Look at and make
STRDBU
changes to the database
Runs DBU without the above command.
DBU Qualified Name
ADDLIBLE DBU41 *LAST before using
Start DFU (Data File Utility) Many of the same
STRDFU
functions of DBU
DSPFFD Displays file field descriptions
DSPFD Displays file description for specified file
DSPPFM Displays member of a physical file
Displays contents of database file.
DSPDBF Must add TAATOOL to library list before using this
command
Display the files used in a program and which
DSPPGMREF
libraries the program was compiled over
Will allow printing a range of pages from a member
in the specified OUTQ.
PRTRNG
Must add PRTRNG to library list before using this
command
Mark object in spool file with 2 for change. Type
OUTQ(PRINTER)
this on the command line.
WRKJOBSCDE Look at scheduled jobs
RUNQRY
Run query on a file with no parameters
QRYFILE(LIB/FILE)
DSPDBR LIB/FILE Shows logicals related to a physical file
Miscellaneous:
F4 on a command line will take you to the Major Commands Menu
F9 on a command line will retrieve prior commands
F16 Displays User Defined Options
To compile a program without generating a new source object enter 14 for compile
then F4. Press F10 for additional parameters. Under source listing options put
*NOGEN
To end a job without creating a log. Enter the 4 and press F4, How to end *IMMED,
Maximum log entries 0