Last updated: November 2026
New to the platform? Start with our AS400 / IBM i explainer for the history, the version landscape and what the platform is actually used for, then come back here for the commands.

Free printable AS400 cheat sheet (PDF)
The whole cheat sheet on one A4 page that folds into a pocket-sized tri-fold: nearly 100 commands grouped by task, the 5250 function keys, the System Request menu, quick answers to the questions newcomers ask, and the commands to handle with care. Checked for IBM i 7.5 and 7.6, October 2026.
Download the AS400 cheat sheet (PDF, 280 KB)
To print: A4 at actual size (100%), two-sided, flip on short edge. Fold the narrow inside panel in first, then fold the cover over it.
Get an email when we update it. We will let you know when a new IBM i release changes the sheet.
At a green screen right now? The five keys that get you out of trouble: F4 prompts any command (type WRKACTJOB, press F4, fill the blanks) · F1 help on whatever the cursor is on · F3 exit · F12 back one screen · F5 refresh. Commands are verb + noun: WRK work with, DSP display, CHG change, DLT delete — so WRKSPLF is “work with spooled files”. Jump to the command table or see all the function keys.
The IBM AS/400 was the result of a long project at IBM to bring together their S/3, S/36, S/38 ranges onto a single common new platform. Over the years the platform gained the ability to run Unix and Linux workloads and PHP applications, and even, via add-on Intel processors, Windows. As the role of the platform has changed so has its name. Originally code-named the Silver Lake Project, then AS/400, then iSeries and now IBM i. The operating system was originally OS/400, was renamed i5/OS in 2004, and has been called IBM i since 2008.
Despite IBM's long-running efforts to retire the AS/400 name, a little keyword research shows that far more people still search for "AS/400" than for "IBM i" each month — and many of them never reach IBM's own pages when they do.
If you have a specific question about how to do something please post a comment and if I can I'll answer your question and then add it to this list.
The essential AS400 commands
AS400 commands are the CL (Control Language) commands you type on the IBM i command line or run from a CL program. Each name is a short verb plus a noun, so WRKACTJOB means work with active jobs and DSPLIBL means display library list. Type any command and press F4 to be prompted for its parameters. These are the eleven I use most:
| Command | What it does |
|---|---|
| signoff | Log off |
| go <menu name> eg go main | display a named menu |
| addlible (Add Library List Entry) | On the AS/400 Libraries are essentially the same as databases on other platforms. The ADDLIBLE command adds the library to a list of libraries that will be searched for a given file or object. In this way, it's a combination of the PATH and USE commands from other platforms. |
| dsplibl (Display Library List) | Displays your current library list |
| edtlibl (Edit Library List) | Lets you interactively edit your library list. |
| wrkactjob (work with active jobs) | Similar to the top command in Linux or Task Manager in Windows. This command displays a list of all the jobs running on your AS/400. From here you can end jobs (option 4, which runs ENDJOB; check it is the right job first, and prefer the controlled option over *IMMED) and work with them to look at things like the files they have open (option 5)This can be useful to see if any jobs have crashed and are awaiting operator assistance - see status MSGW (Message wait). Jobs can sometimes be at status LCKW (Lock Wait), this means that the job is waiting to update a database record that another job (user) has open and locked. You can work with the locks to see who has the lock and ask them to come out of the screen they are in. The job will then resume automatically. |
| wrksplf (Work with SPOOL files) | Work with (display) the SPOOL (ie printed output) from the jobs you have run. Your job may be attached to an Output Queue which is attached to a printer. If not you will need to put an option 2 next to a report and press enter and then select an Output Queue. |
| wrkwtr (work 'print' writer) | Basically, a print writer is like a print manager or printer driver. This command displays an interactive list of all the print writers on your system. These should relate to the attached printers. To actually print, it is necessary to start the writer - option 1. If the printer has an error, for example out of paper or a paper jam there will be a message waiting (MSGW). You'll need to use option 7 to display the message. Fix the problem with the printer, then reply G (Go) to the message, which will generally get it printing again. |
| wrkjobq (work job queue) | AS/400s are used in very busy commercial environments where thousands of jobs have to be run every day. The system can't do these all at once, so jobs are placed into a queue. Generally, one job runs from a queue at a time. This command will display a list of all the job queues on the system, from where you can select which one you want to work with. If you know the name of the job queue just enter WRKJOBQ QBATCH for example. |
| wrkjobscd (work with the job scheduler) | This is the built-in job scheduler. This allows you to set up routine jobs to be run automatically. It's very similar to crontab on Linux. |
| dspobjd (display object description) | Display information about an object, e.g. DSPOBJD, press F4 to get the detailed prompt, enter QBATCH and object *JOBQ will display the details of the job queue object. |
There are probably over a thousand AS/400 commands, but in normal operations, you will only need to use a handful and I've tried to give these above. If you want to know how to do something specific, please leave a message below and I'll get back to you.
Want the rest on paper? The table above covers my everyday eleven, and the tables below add the next forty. The printable AS400 cheat sheet (PDF) has nearly 100 commands grouped by task, plus the 5250 function keys and the System Request menu, on one A4 sheet that folds to pocket size. Keep it next to the terminal.
IBM i commands list, grouped by task
The table above is the everyday eleven. These are the next commands you will reach for, grouped by the job you are trying to do. Type the command and press F4 to be prompted for its parameters. The right-hand column is only a rough pointer for people coming from Linux or Windows, not an exact match.
Jobs and work management
| Command | What it does | Rough Linux / Windows equivalent |
|---|---|---|
| WRKUSRJOB | Jobs belonging to one user, including finished jobs and jobs still on a queue | ps -u user |
| WRKSBMJOB | Batch jobs you have submitted and where they are now | jobs |
| WRKJOB | Everything about one job: call stack, locks, job log, spool files | ps -p / Task Manager details |
| DSPJOBLOG | The job log for your current job, where most error messages end up | the program's log file |
| SBMJOB CMD(...) | Run a command in batch, e.g. SBMJOB CMD(CALL PGM(MYPGM)) JOBQ(QBATCH) | nohup command & |
| WRKSBS | Subsystems and whether they are active | systemctl list-units |
| ENDJOB | End a job; OPTION(*CNTRLD) lets it tidy up first | kill |
Messages and logs
| Command | What it does | Rough Linux / Windows equivalent |
|---|---|---|
| DSPMSG | Messages sent to you | your inbox |
| DSPMSG QSYSOPR | The system operator message queue, where jobs in MSGW wait for replies | /var/log/messages |
| WRKMSGQ | List and work with any message queue | - |
| DSPLOG | The QHST history log of system events | journalctl / Event Viewer |
| CHGCLNUP | Set automatic clean-up of old job logs and messages | logrotate |
Libraries, objects and files
| Command | What it does | Rough Linux / Windows equivalent |
|---|---|---|
| WRKLIB / DSPLIB | Work with libraries, or list the objects in one library | ls |
| WRKOBJ | Find objects by name, e.g. WRKOBJ OBJ(*ALL/MYFILE) | find |
| WRKOBJLCK | Which jobs hold a lock on an object, e.g. WRKOBJLCK OBJ(MYLIB/MYFILE) OBJTYPE(*FILE) | lsof / fuser |
| DSPFD | Description of a database file: members, record count, attributes | - |
| DSPFFD | The field (column) layout of a file | DESCRIBE TABLE |
| DSPPFM | View the data in a physical file member | less |
| CPYF | Copy data from one file to another | cp |
| CHGCURLIB | Change your current library | cd |
| WRKLNK | Browse the IFS, the Unix-style file system, e.g. WRKLNK '/home' | ls / cd |
Users and security
| Command | What it does | Rough Linux / Windows equivalent |
|---|---|---|
| CHGPWD | Change your own password | passwd |
| WRKUSRPRF / DSPUSRPRF | Work with or display user profiles | users and groups admin |
| DSPOBJAUT | Who has authority to an object | ls -l |
| EDTOBJAUT / GRTOBJAUT | Change or grant authority to an object | chmod / setfacl |
System status, network and fixes
| Command | What it does | Rough Linux / Windows equivalent |
|---|---|---|
| WRKSYSSTS | CPU, memory pools and storage used at a glance | top / vmstat |
| WRKDSKSTS | Disk unit activity and percentage used | iostat |
| WRKSYSVAL | System values (the system-wide settings) | sysctl |
| DSPPTF | Fixes (PTFs) installed on the system | installed updates list |
| WRKCFGSTS | Status of lines, controllers and devices, e.g. WRKCFGSTS *DEV | ip link |
| NETSTAT | TCP/IP interfaces, routes and connections | netstat |
| PING | Test a TCP/IP connection, e.g. PING 'myserver' | ping |
Backup and restore
| Command | What it does | Rough Linux / Windows equivalent |
|---|---|---|
| GO SAVE | The save menu, the safest starting point for backups | - |
| SAVLIB / RSTLIB | Save or restore a whole library | tar |
| SAVOBJ / RSTOBJ | Save or restore individual objects | tar (selected files) |
Commands to handle with care
These are all legitimate, but on a live system they can stop the business or destroy data. Check twice, and on a production box ask before you run them.
| Command | What it does | Rough Linux / Windows equivalent |
|---|---|---|
| PWRDWNSYS | Power down (or restart) the whole system | shutdown |
| ENDSBS *ALL | End every subsystem and put the system into restricted state | single-user mode |
| ENDJOB OPTION(*IMMED) | End a job instantly with no clean-up | kill -9 |
| CLRLIB / DLTLIB | Empty or delete a library and everything in it | rm -rf |
| CLRPFM | Remove every record from a file member | TRUNCATE TABLE |
Is the IBMi (AS/400) a legacy system?
- Don't think of the IBM i (AS/400 or iSeries) as a legacy platform. It is actually one of the youngest operating systems on the market today. Unix began at Bell Labs in 1969 as a multi-user, time-sharing operating system for minicomputers. Likewise Windows traces its roots back to DOS and VAX VMS which was reborn as Windows NT. The OS/400 operating system, by contrast, was designed on a blank sheet of paper in the mid-1970s as a future multi-user, object-based operating system for smaller companies without big IT support departments. It was one of the first fully 64-bit platforms. Its technology-independent software layer means that applications are dynamically regenerated whenever IBM ships new processors. Over the years this has seen code auto-update from 32-bit, to 48-bit and then full 64-bit. Its internal addressing structure is already 128-bit.
- We sometimes hear people say AS/400 is a legacy green screen system. Yes, it supports a terminal interface, in the same way that Unix, macOS and Windows do, but the vast majority of people accessing applications running on the IBM iSeries today use a modern GUI environment and increasingly iSeries applications are delivered via a web browser interface. The Operating System comes with the IBM HTTP Server for i (powered by Apache) and the Integrated Web Application Server ready to go (full WebSphere Application Server is a separate product), so that users can connect to the OS Browser based admin portal.
- An AS/400 is to Unix what an Apple Mac is to Windows. By this I mean that it ships with everything pre-integrated, for example the Db2 database is integrated into the OS. The OS then uses Db2 to store configuration information. Likewise as mentioned above, the Apache-based HTTP Server and an integrated web application server are included.
- The AS/400 inherited its object-based design from the System/38. Everything on the system is an object. For example if you have a printer called PRT01 then you can use the DSPOBJD PRT01 *DEVD command to display basic information about the printer, likewise if you have a user called FRANK then the DSPOBJD FRANK *USRPRF command will display basic information about FRANK.
- Because everything is an Object, security is inherited and enforced by the Operating System at Object level.
- OS/400 has GUI clients but was originally designed to be used from a text based terminal. You can usually telnet in using a VT100 client but the system is designed to use the IBM 5250 client.
- The OS/400 text interface was probably one of the last text-based operating systems to be created, launched in 1988 just as everything else was going GUI. This is very much the state of the art text interface and worthy of study!
Still current in 2026: the AS/400 line is alive and actively developed. The latest release is IBM i 7.6 (shipped in 2025), with 7.5 also in standard support. Standard support for 7.4 ended on 30 September 2026, with paid extended support available from IBM after that. In other words, this is a living platform, not a museum piece. Not sure which release your own system runs? Here is how to check your IBM i (AS400) version.
Some more commands to get you started on IBM i
- If you don't know any OS/400 commands then you can achieve a lot by simply typing GO MAIN and pressing enter. This will take you to a user friendly main menu which will ask you what you want to do and then step you through doing it.
- F1 provides help anywhere.
- F4 provides context-sensitive prompting, which is much quicker than working through man pages on Unix.
- All the commands follow a logical naming convention eg <verb><noun> for example WRKUSRPRF FRANK for Work with user profile Frank, DSPUSRPRF FRANK for display, DLTUSRPRF FRANK, PRTUSRPRF FRANK.
- For a complete list of commands try GO CMDWRK or GO CMDDSP or GO CMDPRT
5250 function keys and the System Request menu
| Key | What it does |
|---|---|
| F1 | Help for whatever the cursor is on |
| F3 | Exit the current screen |
| F4 | Prompt for a command's parameters, or list valid values for a field |
| F5 | Refresh the screen |
| F9 | Retrieve the previous command on the command line |
| F10 | Show additional parameters on a prompt screen |
| F12 | Cancel and go back one screen |
| F24 | Show more function keys |
| Sys Req | System Request menu: option 2 ends the current request, 3 shows your job, 90 signs off (the key mapping depends on your emulator) |
WRKACTJOB status codes explained
| Status | Meaning | What to do |
|---|---|---|
| RUN | Using the processor right now | Nothing, unless it is stuck at high CPU |
| MSGW | Waiting for a reply to a message | Option 7 to display the message and reply |
| LCKW | Waiting for a lock another job holds | WRKOBJLCK on the object to find the holder |
| DSPW | Waiting for a user to press a key | Normal for interactive sessions |
| DLYW | Paused by a DLYJOB command | Normal for polling jobs |
| DEQW | Waiting for an entry on a data queue | Usually an idle server job; normal |
| EVTW | Waiting for an event | Usually a system job; normal |
| HLD | Held | Option 6 to release it if it should be running |
Books to take you beyond the cheat sheet
A cheat sheet gets you through the first week. If the AS/400 is now part of your job, these are the books IBM i professionals actually keep on the desk — most from MC Press, the specialist IBM i publisher. These are Amazon UK affiliate links (full disclosure below the books).

Control Language Programming for IBM i
Jim Buck, Bryan Meyers & Dan Riehl
Every command in the table above is CL. This is the standard text for going from typing commands to writing CL programs that chain them together — variables, error handling, files and prompting.
View on Amazon
Jim Buck & Jerry Fottral
The broad grounding — objects, libraries, work management and security — written as a textbook for people new to the platform. The best single book if you have inherited a box.
View on Amazon
Programming in ILE RPG (5th edition)
Jim Buck & Bryan Meyers
The teaching text most IBM i developers learned RPG from, updated for free-format code. Read it if the next step after operations is maintaining the applications.
View on Amazon
Free-Format RPG IV (3rd edition)
Jim Martin
A short, practical bridge from fixed-format RPG to the modern free-form syntax — useful when you are handed older code and asked to modernise it.
View on Amazon
IBM i Security Administration and Compliance (3rd edition)
Carol Woodbury
The reference for user profiles, object authority, auditing and exit points, from the best-known name in IBM i security. Worth having if you are responsible for audit findings.
View on Amazon
Carol Woodbury
The hands-on companion to the book above, subtitled A Modern Step-by-Step Guide. Choose this one if you need to work through securing a system you have just inherited; choose the one above if you want a reference to look things up in.
View on AmazonDisclosure: as an Amazon Associate, IT Management 101 earns from qualifying purchases. If you buy through these links we may receive a small commission, at no extra cost to you. Availability and links were checked on 3 October 2026 and can change.
Does IBM i support Kubernetes and containers?
- OS/400 has supported virtualisation through logical partitioning since V4R4 in 1999. One machine can be split into many LPARs (logical partitions). Resources can be dynamically moved between LPARs — for example memory, CPUs, and so on. Each LPAR is a separate virtual machine (VM) and can run different versions of OS/400 and indeed other Operating Systems such as AIX and Linux.
- While you can split a system up using LPARs, for most practical purposes where the workload is all OS/400 based the work is better managed through subsystems. A subsystem is defined by a subsystem description (object type *SBSD). Once you have created a subsystem description you can create job queues (CRTJOBQ) and add them to the subsystem (ADDJOBQE) to get work done. You can also add workstation entries (terminals) to the subsystem (ADDWSE) to group users together. For example, you might create a subsystem called TELESALES for your call centre, where you want the operators to have the best possible response times. To this subsystem you would add all the workstation IDs in that department, along with memory and processing priorities. You might then create another subsystem called REPORTS where end-of-day management reports can be run at lower priority. IBM ships two standard set-ups. By default the controlling subsystem is QBASE, which runs interactive, batch and communications work itself. Many shops switch to the alternative QCTL set-up, where QINTER handles interactive users and QBATCH handles batch jobs (the controlling subsystem is set by the QCTLSBSD system value). If you end a subsystem (ENDSBS, e.g. ENDSBS QINTER *IMMED) the memory in its private storage pool is returned to the shared *BASE pool for other work to use. Handle with care: ending QINTER signs off every interactive user, and OPTION(*IMMED) ends jobs without letting programs clean up, which IBM warns can leave data partially updated. Use OPTION(*CNTRLD) with a DELAY wherever possible, and never run it on a production system without warning users first.
- OS/400 has a built-in queue object called a data queue (*DTAQ). On other platforms you might have to install something like IBM MQ or Apache ActiveMQ to achieve the same asynchronous process communications capability.
- Is an IBMi LPAR the same as a Container? No, each LPAR is a whole virtual machine, with a full Operating System.
- So can you run Docker or Kubernetes on IBM i itself? Not natively. IBM has said it has no plans to bring Docker to IBM i, and points customers who need isolation to LPARs. Container workloads on the same Power server normally run in a separate Linux LPAR alongside IBM i.
AS/400 & IBMi Jobs
There is still a lot of demand for people with IBMi skills, but the market is nowhere near as big as it is for say Azure or AWS. This does mean if you get the opportunity to train in IBMi Power Systems and you are prepared to become an expert you could be very valuable, a big fish in a small pond.
There are however jobs in this area that are probably underpaid/undervalued and not for the fainthearted. I know of people who have been asked to modify 30-year-old RPG400 code which was machine-generated back in the day. But there's lots of new code out there as well. J D Edwards started life on AS/400 and is still available. In recent years Oracle have rewritten a number of the older RPG400 programs into free format RPG4. This was driven by the need to exceed the limitations of the older language so that code could be updated to use the updated JDE ecosystem and tooling.
Is there support for 2FA or MFA on AS/400 5250 Signed Screen?
Yes, on current releases. Since IBM i 7.6 (April 2025), multi-factor authentication (MFA) for sign-on is built into the operating system and uses time-based one-time passwords (TOTP). An administrator first enables the system-wide 'Additional sign-on factor' security attribute (QSECURITY 40+ and QPWDLVL 4+ are required), then sets each user profile to require it. On IBM i 7.5 and earlier there is no native option, but 2FA can still be added. When a user signs on, the system looks at their User Profile to see if there is an initial program (INLPGM) specified. If there is, the system will run it before anything else. A programmer could easily create a script to email or SMS the user with a random and time limited number which the user would need to enter to complete the login process.
This might help stop end users sharing user IDs and passwords, which seems to be a problem in some environments.
You should however NOT rely on the sign screen to protect your system. There are potentially a number of other ways to connect to resources on the system if you know a valid user ID and password.
AS400 command FAQs
What are the most used AS400 commands?
Day to day, most people need only a handful: WRKACTJOB (active jobs), WRKSPLF (your printed output), DSPMSG QSYSOPR (operator messages), WRKOBJLCK (who is locking an object), DSPLIBL and EDTLIBL (your library list), SBMJOB (run something in batch), ENDJOB (end a job), WRKSYSSTS (system status), WRKUSRPRF (user profiles) and CHGPWD (change your password). The essential table at the top has my own everyday eleven, and the tables below it group the rest by task.
How do I see a list of all IBM i commands?
Type GO MAJOR for the menu of major command groups, or GO CMDWRK for every "work with" command (GO CMDDSP and GO CMDPRT do the same for display and print commands). SLTCMD CMD(WRK*) lists every command whose name starts with WRK. Press F4 on any command to see its parameters and F1 for help.
How do I find which job is locking a file on the AS400?
Run WRKOBJLCK OBJ(MYLIB/MYFILE) OBJTYPE(*FILE). It lists every job holding a lock on the file, and option 5 takes you into that job. For individual record locks use DSPRCDLCK FILE(MYLIB/MYFILE).
How do I end a stuck job on IBM i?
In WRKACTJOB put option 4 next to the job and press F4 rather than Enter, so you can choose OPTION(*CNTRLD), which lets the job tidy up first. Use *IMMED only if a controlled end does not work. The command form is ENDJOB JOB(number/user/jobname).
What does MSGW mean in WRKACTJOB?
MSGW means the job is waiting for a reply to a message, often an error. Put option 7 next to the job to display the message, read it, and type the reply it asks for.
How do I change my AS400 password?
Type CHGPWD on the command line, then enter your current password and the new one twice.
How do I check which version of IBM i is installed?
Type GO LICPGM and take option 10 to display installed licensed programs, then press F11 until the release column appears. The release shown against the operating system, 5770-SS1, is your version, for example V7R5M0 for IBM i 7.5. Our step-by-step guide to checking your IBM i version covers the other ways to check.
AS/400 Questions?
As above, if you have a specific question about how to do something on the AS/400 (iSeries) I'd love to hear from you. Either e-mail me directly or better leave a comment below and I'll get straight back to you.
You may also be interested in:
How do I find what version of J D Edwards (JDE) is installed?
How do I find what version of the AS/400 / OS/400 Operating System is installed?

Do you know how to see what jobs or programs are running on an AS/400?
To see all the jobs / programs that are running on your AS/400 use the WRKACTJOB (Work Active Jobs) command. Once this is started you can use F5 to refresh the screen. You can even sort the display to see which jobs are using the most CPU. If you have any more questions about the AS/400 I’d be happy to answer them for you.
Is there a way to get a list of all installed software (this includes non-ibm software)?
David, If you have sufficient access rights then GO LICPGM and then take the option to display or work with installed licenses programs will show you what IBM software is installed. This will also show you some third party applications where the vendor has used the API packaging API’s. After that to get a good feel for what’s installed on an IBM iSeries I’d do a WRKLIBPDM (assuming PDM is installed) or just a WRKLIB (if not) and scan through all the libraries. That will give you a good view of what’s installed. There could be other applications written in Java, PHP, net.data etc that are installed in the IFS (Unix type file-system). You’ll need to either map a drive from your PC to the root directory of your iSeries (if you have rights) or use the WRKLNK ‘/’ command and navigate through the directories. It’s also worth interviewing a few users to see what applications they use, and then sanity check the lists you are getting against what you are hearing. Finally one iSeries (AS/400) box can run multiple Virtual Machines (VM’s) these days, in IBM terms these are known as LPARS (Logical Partitions). The other VM’s might not even has OS/400 installed on them, they could be Unix VM’s. Let me know if you have any more specific questions.
Hi,
This is a good post. Thanks for Posting this,
I am very new to AS400 and searching for basic commands for my WebSphere Administrative work. Is there any document/book that you can refer me to?
Appreciate your response. It will be very useful. Thanks!
Has anyone found a list of basic commands for AS400?
I’ll put a list of basic AS/400 (iSeries) commands up when I get a chance but in the meantime if you give me some feedback on what you want to do I’ll try and give you a specific answer.
Is there a way I can avoid doing a total shut down of AS/400 when a user(s) connection is terminated and unable to get a display screen to log back on. I’m new to AS/400 but have been given the task to oversee and troubleshoot all problems pertaining AS/400.
It’s always worth trying the Disconnect User Job option, you’ll see this in WRKACTJOB, WRKJOB etc. This suspends the users session until they log back in again, typically for up to an hour. Depending on what state the program the user is running is in this may allow them to reconnect to the application without causing a runtime error.
Two questions:
1) how to remove excessive items in the spool file?
2) how to get the spool file to clean itself up on a weekly basis?
mostly job logs
Hi Curtis, when you say excessive items in the spool file the answer will depend on what is generating each spool file. Many of the OS400 commands have options to control the level of output. If you can give me more details I might be able to help.
There are lots of utilities available for cleaning up JOB LOG spool files from years ago but there is also built in support in the OS now. See the CHGCLNUP command (https://www.ibm.com/docs/en/i/7.6.0?topic=ssw_ibm_i_76/cl/chgclnup.htm ). You might also have an issue on your system if you are seeing an excessive number of joblogs. This could mean a job is failing or just that a job description set-up wrongly to produce a job log even on a normal end. Let me know how you get on or if you have any follow-up questions.