People still ask me which is “the real way” to work on IBM i: the green screen, PDM, Visual Studio Code, or an AI assistant like IBM Bob.
The honest answer is slightly deflating. They’re all the same way. The windows are different. The commands are not.
Every one of those tools, in the end, hands a Control Language command to the same operating system. And I’ll go a step further, because this is the bit that still makes experienced developers sit back in their chair: even calling a program is a command. CALL is a *CMD object, just like CRTBNDRPG or WRKACTJOB. You can prompt it with F4. You can inspect it with DSPCMD. It has the same classic parameter traps it has had for decades.
I walked through all of this in a short presentation. Have a watch, then keep reading: I’ll unpack the path from the terminal to the IDE, and spend a bit of time on CALL itself.
Every window hands the same operating system a CL command
Type WRKACTJOB on a green screen, click a compile action in VS Code, or approve a command Bob proposes. Three very different experiences. All three do the same thing: they hand a CL command string to IBM i.
The Main Menu, PDM, SEU, Code for IBM i actions and Bob’s tools are applications sitting on top of that command line. They are not a second operating system. They are front ends.
The application produces a command string. That string goes to QCMD, the interactive command processor. QCMD parses it, finds the matching *CMD object the command definition and calls that command’s command processing program (the CPP). Then IBM i gets on with the work.
Front ends come and go. That path does not change.
The menu is an application. The command line is the system. Once you see that, a lot of the mystery and a lot of the tribal warfare evaporates.
The green screen never left the command line
Sign on to an IBM i and, unless someone has customised your profile, you land on the Main Menu. The name in the top-left corner is MAIN. It feels like the operating system. It isn’t. It is a menu object, type *MENU. You can jump straight back to it from anywhere with a command:
GO MAIN
GO shows a menu. That’s all it does. Option 1 on the Main Menu runs GO USER. Option 5 runs GO PROGRAM. There are hundreds of these menus on a typical system GO *ALL will list them if you fancy a wander and every one of them has a command line at the bottom. That is not a coincidence.
Type a number and the menu runs a command for you. Type a CL command instead, and the menu steps aside and lets the command processor do its job. You were never “in the menus” instead of “on the command line”. You were on the command line the whole time, with a menu program stacked in front of you.
Want the fuller command entry panel, with scrollback? You already know this one, even if you haven’t thought about what it is:
CALL QCMD
There’s our first CALL. It is not a special system incantation. It is the Call Program command, starting the interactive command processor.
Two cousins get mentioned in the same breath, and they’re not the same thing:
QCMDruns commands interactively. It reads a request from the command line (or a request message) and runs it.QCMDEXCruns a CL string from a program. The SQL version isQSYS2.QCMDEXC.
Same idea either way: a CL string goes in, the *CMD object is found, and the CPP does the work. The pretty screen you get from WRKACTJOB is not the command. It is the program the command starts.
F4 is the *CMD object describing itself
You’ve pressed F4 about a thousand times. The prompt does not come from PDM, and it does not come from VS Code. It comes from the command itself.
Type a command and press F4, or type it with no parameters and press Enter, and IBM i shows you the prompt. On that prompt, F10 reveals the additional parameters the ones the command definition has tucked away until you ask for them.
WRKACTJOB
Press F4 for the basic parameters. Press F10 for the rest. Then have a look at the object behind it:
DSPOBJD OBJ(QSYS/WRKMBRPDM) OBJTYPE(*CMD)
DSPCMD CMD(WRKMBRPDM)
Every CL command is a *CMD object. It describes its own parameters: which ones are required, which ones hide until F10, and which program runs when you press Enter. DSPCMD shows you that definition, including the CPP.
A useful wrinkle: a lot of IBM-supplied commands in QSYS are proxy commands. They are still *CMD objects, but instead of having their own CPP they point at the real command, often in a product library. DSPCMD QSYS/STRPDM typically shows a proxy that points at QPDA/STRPDM. On typical systems, PDM’s “work with” commands are processed by QUOCPP in QPDA. Don’t take my word for it. Run DSPCMD on your own box and read the Command Processing Program line.
If you want to go further, RTVCMDSRC retrieves the command definition source the parameter layout F4 is reading, not the CPP’s program source.
So when someone says, “I only know the menu,” the kind reply is: the menu knew the command all along.
PDM is a list panel that builds commands
STRPDM, WRKMBRPDM and WRKOBJPDM feel like “the development environment”. They are programs, started by CL commands. When you type an option next to a member, PDM is not compiling anything itself. It is building a command and running it.
- Option 2=Edit typically runs
STRSEU. SEU is another application on the same command line. - Option 14=Compile builds the create command for that member type. Prompt the option with F4 and watch the command appear.
For an RPGLE member, option 14 typically builds something like this (your exact keywords will follow the member type and your PDM defaults):
CRTBNDRPG PGM(MYLIB/PAYCALC) SRCFILE(MYLIB/QRPGLESRC) DBGVIEW(*SOURCE)
Press F16 from a PDM list and you get User-Defined Options. They live in a physical file the default is QAUOOPT in QGPL. Each row is a two-character option and a command string. Options 00 to 99 are reserved for PDM itself. The rest work the same way: build a command, run the command.
PDM fills in the row you’re standing on with substitution variables. For a member list, the everyday ones are &L (library), &F (source file) and &N (member):
CRTBNDRPG PGM(&L/&N) SRCFILE(&L/&F) DBGVIEW(*SOURCE)
Once you’ve seen QAUOOPT, PDM stops looking like a separate universe. And every WRK* command you have ever loved – WRKACTJOB, WRKSPLF, WRKOBJLCK – is the same trick: a list generator plus a command builder.
VS Code and IBM Bob are standing in the same queue
Code for IBM i, inside Visual Studio Code, does the same job as those PDM user options. An Action in an actions.json file is a name, a command string, the file extensions it applies to, and the environment it runs in:
{
"name": "Create Bound RPG Program",
"command": "?CRTBNDRPG PGM(&OPENLIB/&OPENMBR) SRCFILE(&OPENLIB/&OPENSPF) OPTION(*EVENTF) DBGVIEW(*SOURCE)",
"extensions": ["RPGLE"],
"type": "member",
"environment": "ile"
}
The variables should look familiar:
- PDM’s
&Lbecomes&OPENLIB &Fbecomes&OPENSPF&Nbecomes&OPENMBR
Same idea. New names. The command in the middle is still CRTBNDRPG.
Press Ctrl+E (Cmd+E on a Mac) to run an Action. A leading ? shows you the command first F4’s idea, in a GUI. OPTION(*EVENTF) is the modern bonus: compile errors land in the Problems view, next to the offending line, instead of in a spooled listing you have to go digging through.
Behind the scenes it is one SSH session. SQL (including services such as QSYS2.QCMDEXC) typically travels over Code for IBM i’s database connection, Mapepire. Compile Actions run the CL in the ILE environment. Different pipes. Same machine. Still commands.
IBM Bob sits on top of that same connection. It can look up your Actions, run one of them, or run CL directly. The important bit: Bob proposes the command, and you approve it. Keep that approval step switched on. Please. For my sake.
And yes: even CALL is a command
This is the part I want to underline.
We talk about “calling a program” as if it were a special, primitive act, somehow underneath the command language. It isn’t. Starting a program from the command line, from a menu option, from a batch job, or from a CL program, is done with the Call Program (CALL) command. It lives in QSYS. It is a *CMD object. You can prove it on your own system:
DSPCMD CMD(QSYS/CALL)
Type CALL and press F4, just as you would with CRTBNDRPG. You’ll get the same style of prompt: a Program (PGM) parameter, and a Parameters (PARM) parameter. Fill them in, press Enter, and QCMD does what it always does finds the *CMD object and runs its CPP, which in this case starts the program you named.
CALL PGM(MYLIB/PAYCALC)
CALL PGM(MYLIB/PAYCALC) PARM('A001' 125.5)
That second line is where generations of IBM i developers have left a little blood on the carpet.
When you pass literals on CALL from the command line, or from SBMJOB, or any other place the command is not compiled with typed CL variables the system has to invent temporary storage for those values. It uses two default rules that are worth tattooing on the inside of your eyelids:
- A numeric literal is passed as packed decimal
15,5. The value125.5arrives as125.50000in 8 bytes of packed decimal, not as thepacked(7:2)your RPG program was expecting. - A character literal of 32 bytes or less is passed as 32 bytes, left-aligned and padded with blanks. A literal longer than 32 bytes is passed at its exact length and is not padded out to whatever the receiving program declared.
So 'A001' becomes a 32-byte field. If PAYCALC only reads the first four characters, that part often works. If PAYCALC expected a 50-character description and you passed 'INVOICE', only 32 bytes are reserved, and the program may read whatever happens to be in memory after that. The numeric mismatch is nastier: you can get a decimal data error, or worse, a quietly wrong amount.
The grown-up ways out are straightforward. From a CL program, declare variables of the correct type and length and pass those, not literals. On modern IBM i you can also spell the type and length out on the CALL itself:
CALL PGM(MYLIB/PAYCALC) PARM(('A001' (*CHAR 4)) (125.5 (*DEC 7 2)))
And then there’s the Russian doll.
Submitting a program to batch is not a different mechanism. It is a command whose parameter is another command:
SBMJOB CMD(CALL PGM(MYLIB/PAYCALC) PARM(('A001' (*CHAR 4)) (125.5 (*DEC 7 2)))) +
JOB(PAYCALC)
SBMJOB is a *CMD. Its CMD parameter is a command string. That string is CALL, which is also a *CMD. CALL starts PAYCALC. A command wrapped in a command, handed to the same command processor, in a new job. If you pass CL variables on that inner CALL from a compiled program, SBMJOB converts them to constants when the job is submitted, trailing blanks on character variables get trimmed which is why those same 32-byte and 15,5 rules can bite in batch if you don’t specify the type and length.
Zoom out one more step and a CL program itself is just a list of commands, with PGM at the top and ENDPGM at the bottom:
PGM
CRTBNDRPG PGM(MYLIB/PAYCALC) SRCFILE(MYLIB/QRPGLESRC) DBGVIEW(*SOURCE)
CALL PGM(MYLIB/PAYCALC)
ENDPGM
Compile it, and you start that program with, you guessed it, CALL.
From SQL, you can run a command string with no 5250 and no IDE at all. This CALL is the SQL one, invoking the QSYS2.QCMDEXC procedure, not the CL CALL command. Same English word, different language. Don’t mix them up, but do notice the pattern: even from a SQL client, you are still sending CL.
CALL QSYS2.QCMDEXC('CRTBNDRPG PGM(MYLIB/PAYCALC) SRCFILE(MYLIB/QRPGLESRC) DBGVIEW(*SOURCE)');
Terminal, menu, PDM, VS Code, Bob, a batch job, a CL program, or a SQL script. It’s commands, all the way down.
Four doors, one corridor
Let’s put the original example side by side. One task: compile PAYCALC. Four ways of asking.
| Window | What you do | What actually runs |
|---|---|---|
| 5250 command line | Type CRTBNDRPG, or press F4 to prompt and F10 for extras | CRTBNDRPG PGM(MYLIB/PAYCALC) SRCFILE(MYLIB/QRPGLESRC) DBGVIEW(*SOURCE) |
| PDM | Option 14 next to PAYCALC in WRKMBRPDM | The same command, built from the member row and your defaults |
| VS Code | Ctrl+E, then the “Create Bound RPG Program” action | The same command, with &OPENLIB and &OPENMBR filled in |
| IBM Bob | Ask it to compile PAYCALC read the command, then approve | The same command, after you say yes |
| No window at all | Run QSYS2.QCMDEXC from SQL | The same command string, with no green screen and no IDE |
Different doorway. Same corridor.
So which window should you use?
The answer is not one or the other. Use both windows. But learn the commands.
The green screen still wins when you are operating the system. WRKACTJOB, WRKSPLF, DSPJOBLOG, a quick CHGJOB all faster typed than hunted through a tree view. It still wins on a terrible network: a 5250 session is a few rows of text, and it will survive hotel Wi-Fi, or the Wi-Fi at a beach bar, without a fuss. It still wins on a locked-down customer terminal, because QCMD is already there and your lovely extensions are not. And it wins for learning. What you pick up from F4 travels with you into Visual Studio Code and IBM Bob. It never works the other way round.
Visual Studio Code and IBM Bob win when you are actually writing and changing source: highlighting, split views, search across members. Let’s be honest, SEU is from another age. I loved it once. I don’t miss it. They win for Git – branches, diffs, reviews, proper history and for diagnostics, with errors sitting next to the line that caused them. Bob is genuinely useful for explaining those old programs nobody dares touch, and for drafting the boring parts. Then it shows you the CL, and waits for your approval.
That’s what I do. Editor, Git and AI on one screen. A green screen on the other, ready for WRKACTJOB. Same IBM i. Two windows.
The glasses changed. The language didn’t
If you remember one thing, make it this:
Learn the commands, and every tool on this platform starts making sense.
The Main Menu is a *MENU that runs commands. PDM is a program that builds commands from a list and a file of options. SEU starts with STRSEU. A VS Code Action is a user-defined option with longer variable names. Bob is an assistant that asks for permission, then runs the same commands. And starting a program is not a special exception underneath all of that. It is CALL, a command, with a prompt, a *CMD object, and a couple of parameter habits worth knowing before they bite you.
If you skipped the video earlier, now would be a good time to watch it through. It is the eight-screen version of this story, told at a talking pace, with the terminal in front of you.








Subscribe to Nick Litten Technology on YouTube if you want more of this, and leave a comment on the video or under this post – which command do you still type every day, and has CALL‘s packed 15,5 trick ever caught you out? I read them. The kettle will still be on.


