Mainframe Path Start learning free
Core8 min readLesson 2 of 3

Working on IBM i

IBM i users work on a 5250 green screen or its web and client tools. Commands follow a verb-plus-object pattern, such as WRKACTJOB (work with active jobs), and F4 prompts any command. Objects live in libraries, a library list decides where the system looks, and work runs as jobs in subsystems such as QBATCH and QINTER.

The screen

IBM i uses the 5250 terminal data stream, its equivalent of the mainframe's 3270. Most people use IBM i Access Client Solutions for 5250 emulation, and IBM Navigator for i in a browser. Like a 3270, a 5250 screen sends input when you press Enter or a function key: F3 exits, F12 cancels and F4 prompts the current command, showing every parameter.

CL commands

Commands are written in CL (Control Language) and named by joining short verbs and nouns, so you can often guess them:

CommandMeaningNearest z/OS idea
WRKACTJOBWork with active jobsSDSF DA panel or D A,L
WRKSPLFWork with spooled files (your output)SDSF output queues
DSPJOBLOGDisplay job logThe job's JESMSGLG and JESYSMSG
SBMJOBSubmit a job to a job queueSubmitting JCL
WRKOBJ / DSPLIBWork with objects / display a libraryISPF data set list
DSPMSG QSYSOPRDisplay messages in the system operator message queueThe operator console

Libraries and the library list

Objects live in libraries. Libraries do not nest: every library is itself an object in the system library QSYS. A job's library list (*LIBL) is the ordered list of libraries searched when a program names an object without a library, much like a STEPLIB or a search path. Changing the library list, for example with ADDLIBLE or EDTLIBL, changes which version of a program or file is found.

Jobs, subsystems and queues

TRY IT YOURSELF

Which function key prompts the current CL command, showing its parameters? (for example F1)

Show a hint

The same key prompts commands in many IBM i screens.

Show the solution

F4.

Common mistakes

Typing long commands from memory

Type the command name and press F4: IBM i shows every parameter with help.

Ignoring the library list

The same program name can exist in several libraries. The library list decides which one runs.

Ending jobs from WRKACTJOB without checking

Ending a job (option 4) is like cancelling one on z/OS: check what it is and agree it with the owner.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← IBM i and the AS/400 storyIBM i and z/OS side by side →