IBM AS/400 (IBM i) Cheat Sheet
A reference for the IBM i (AS/400, OS/400) command line, the work-with commands, libraries and objects, spooled files and output queues, messages, and 5250 function-key shortcuts.
A quick reference to IBM i (AS/400, OS/400) control-language (CL) commands. Replace
LIB, FILE, and USRPRF with your own names. Most
commands are verb-object form (Work, Display, Create) and can be prompted with
F4.
Sign-on & sessions
| Command | What it does |
|---|---|
SIGNOFF | Sign off the current session (add *LIST to keep spooled files) |
DSPJOB | Display details of your current job |
WRKUSRPRF USRPRF(USRPRF) | Work with a user profile |
CHGPRF | Change your user profile defaults (language, outq) |
Work-with commands
| Command | What it does |
|---|---|
WRKACTJOB | Work with active jobs and their status |
WRKUSRJOB USRPRF(*CURRENT) | Work with your own jobs |
WRKOBJ OBJ(LIB/*ALL) | Work with objects in a library |
WRKSBMJOB | Work with submitted (batch) jobs |
WRKDEVD | Work with device descriptions (displays, printers) |
Libraries & objects
| Command | What it does |
|---|---|
DSPLIB | Display the contents of a library |
DSPLIBL | Display your current library list |
ADDLIBLE LIB(LIB) | Add a library to your library list |
CRTLIB LIB(LIB) | Create a new library |
DSPOBJD OBJ(LIB/OBJ) OBJTYPE(*ALL) | Display an object's description |
Files & source members
| Command | What it does |
|---|---|
STRPDM | Start the Programming Development Manager |
WRKMBRPDM FILE(LIB/FILE) | Work with the members of a source file |
DSPPFM FILE(LIB/FILE) | Display a physical file member |
CPYF FROMFILE(LIB/A) TOFILE(LIB/B) | Copy a file |
EDTF STMF('/path/file.txt') | Edit an IFS stream file |
Messages & output
| Command | What it does |
|---|---|
DSPMSG | Display your messages |
SNDMSG MSG('text') TOUSR(USRPRF) | Send a message to a user |
WRKSPLF | Work with your spooled files (printouts) |
WRKOUTQ OUTQ(LIB/OUTQ) | Work with an output queue |
System
| Command | What it does |
|---|---|
WRKSYSSTS | Work with system status (CPU, disk, pools) |
DSPSYSVAL SYSVAL(QDATETIME) | Display a system value |
GO MAIN | Open the MAIN menu |
GO CMDWRK | Open the menu of Work commands to browse related CL commands |
Tip: press F4 to prompt any command with a fill-in form of
its parameters, F1 for help on a field, F9 to retrieve your last
command, and F3 to exit. To discover commands, type GO CMDxxx
for a verb (for example GO CMDDSP for all Display commands).
What this does
An IBM AS/400 (IBM i, OS/400) cheat sheet gathers the control-language (CL) commands and 5250 function keys you use every day — work-with commands, libraries and objects, spooled files, messages, and system status.
How to use it
- Browse by section.
- Find the command you need.
- Copy it with one tap.
- Type it at a command line and press Enter.
Example
WRKACTJOB shows every active job and its status.
Sources & methodology
Last updated .
Frequently asked questions
What is a CL command?
A control-language (CL) command is a built-in IBM i instruction, almost always in verb-object form such as WRKACTJOB (Work with Active Jobs) or DSPLIB (Display Library). Type it at a command line and press Enter.
How do I find or prompt a command?
Type the command and press F4 to prompt it with a fill-in form of its parameters, or press F1 on any field for help. To find a command, type a partial verb-object and press F4 to list the matches.
What do the function keys do?
F3 exits most screens, F12 cancels back to the previous one, F4 prompts a command, F9 retrieves your last command, and F1 shows help. The exact meaning can vary by screen, so check the bottom legend.
Related tools
Linux Command Cheat Sheet
The essential Linux terminal commands on one page, files and navigation, permissions, processes, networking, and package managers. A quick reference for the bash shell.
Windows CMD Cheat Sheet
A quick reference for the Windows Command Prompt, file and folder commands, networking, disk and system tools, plus handy keyboard shortcuts.
PowerShell Cheat Sheet
A reference for Windows PowerShell, discovering cmdlets, the object pipeline, filtering and formatting, managing files, processes and services, plus variables and flow control.
macOS Terminal Cheat Sheet
A reference for the macOS Terminal, the Mac-only commands (open, pbcopy, mdfind), system and defaults tools, Homebrew, core Unix commands, and keyboard shortcuts.