Using the Start Programmer Menu command

The Start Programmer Menu (STRPGMMNU) command performs the same function as a call to QPGMMENU and fills in the standard input fields.

To fill in the standard input fields at the bottom of the menu, you can use the following command parameters:

The command may be used with one or more of the parameters that control the initial values of the menu. You could design this as part of an initial program for sign-on or for situations in which a user calls a specific user-written function. The following example shows such a program, with a separate function for each application area requiring different initial values.

Note: By using the code example, you agree to the terms of the Code license and disclaimer information.
      PGM
      CHGLIBL   LIBL(PGMR1 QGPL QTEMP)
LOOP:
      STRPGMMNU SRCLIB(PGMR1) OBJLIB(PGMR1) JOBD(PGMR1)
      MONMSG    MSGID(CPF2320) EXEC(GOTO END) /* F3 or F12 to leave menu */
      GOTO LOOP
END:  ENDPGM