Strovent SystemsSign in
Reference

IBM i screen has no command line: GO MAIN, CALL QCMD and LMTCPB

No ===> line on an IBM i screen? Leave the program with F3 or F12, type GO MAIN or CALL QCMD, or ask whether your profile has LMTCPB(*YES) set.

An IBM i menu has a command line at the bottom, shown as ===>. Application screens often have none. If you never see one, either you are inside a program or your user profile does not allow commands.

Get back to a menu

  • Press F3 (Exit) or F12 (Cancel) until a menu with ===> appears.
  • On any command line, GO MAIN opens the IBM i Main Menu.
  • CALL QCMD opens the Command Entry screen, a full-screen command line that keeps your earlier commands and their messages.

If F3 signs you off instead of reaching a menu, your profile probably runs one initial program (INLPGM) with its initial menu (INLMNU) set to *SIGNOFF, so the session ends when the program does. That is an administrator's choice, often on purpose.

Try the Sign On display

The Sign On display has optional Program/procedure, Menu and Current library fields. Typing MAIN in Menu starts the session on the Main Menu instead of your profile's initial menu. This works only if your profile's Limit capabilities (LMTCPB) value allows it:

  • *NO: you can change the program, menu and current library at sign-on, and run commands on a command line.
  • *PARTIAL: you can change the menu at sign-on and run commands, but not the program or current library.
  • *YES: you cannot change any of the three at sign-on, and commands typed on a command line are refused.

Limited users (LMTCPB *YES)

With LMTCPB(*YES) you may still see ===>, but only commands whose Allow limited user (ALWLMTUSR) value is *YES will run. IBM ships these with *YES: SIGNOFF, SNDMSG, DSPMSG, DSPJOB, DSPJOBLOG, STRPCO and WRKMSG. Other commands run only from menu options the administrator set up.

For the administrator

  • Show a profile's value with DSPUSRPRF USRPRF(USER1). Change it with CHGUSRPRF USRPRF(USER1) LMTCPB(*PARTIAL) or LMTCPB(*NO). You cannot give another user more capability than your own profile has.
  • To let limited users run one more command, change that command's ALWLMTUSR to *YES with CHGCMD. DSPCMD shows the current value.
  • LMTCPB only limits commands typed on a command line. It does not replace object authority. A user who lacks authority to a command is refused whatever LMTCPB says.

Sources

Spotted a mistake? Email [email protected].