CL Command Reference - STRPGMMNU

CL Command List > STRPGMMNU Reference

Description:

The Start Programmer Menu (STRPGMMNU) command shows the programmer menu. This command can be used instead of the CALL QPGMMENU function, and allows you to pass parameters to specify and control the data which appears in the associated fields on the programmer menu.

NOTES:

1. A user exit program can be called instead of submitting a job when option 3 is selected.

2. The first four parameters control the defaults that appear when the menu is first displayed.


Examples:

Example 1: Displaying Programmer Menu

STRPGMMNU

This command displays the Programmer Menu with defaults for all parameters. This has the same result as entering CALL QPGMMENU.



Example 2: Preventing Values from Being Changed

STRPGMMNU SRCFILE(YOURFILE) SRCLIB(YOURLIB) OBJLIB(YOURLIB)
JOB(YOURJOBD) ALWUSRCHG(*NO)

This command prevents the values on the menu from being changed from those specified on the command.



Example 3: Calling an Exit Program

STRPGMMNU EXITPGM(OPT3PGM) DLTOPT(*PROMPT)

This command calls user exit program OPT3PGM instead of submitting a batch job when option 3 is specified. If the object already exists, DLTOPT(*PROMPT) requires the user to press the F11 key; however, the object is not deleted.



Example 4: Receiving Parameters

The following portion of a CL program is an example of how these parameters would be received by a user exit program. If the specified type is one of those listed, the object is not deleted. The create command with REPLACE(*YES) specified is passed to the exit program. The value passed to the exit program is 0.