Create options in command definition source

Several create option parameters on the Create Command (CRTCMD) command can also be specified on the CMD statement. Values that are specified on the CMD statement take precedence over any values specified on the CRTCMD command.

Example: Defining Prompt Text and Command Creation Options

CMD   PROMPT(UCD0002) PMTFILE(MYCMDPMT *DYNAMIC)+
      MSGF(MYCMDMSG)  TEXT(*CMDPMT)  MAXPOS(2)  +
      PRDLIB(MYAPPLIB)  HLPID(*CMD) +
      HLPPNLGRP(MYAPPHLP)

This statement sets the prompt text for the command from message UCD0002 in message file MYCMDPMT, which is located using the library list. All prompt text messages defined for the command are retrieved dynamically when the command is prompted. Error messages sent from the Dependency (DEP) statements in the command definition are found in message file MYCMDMSG, which is located using the library list. The text for the command object is the same as the command prompt text. Only the first two parameters of the command can be specified in positional form without the associated parameter keyword. Library MYAPPLIB is automatically added to the library list before the command is run and is removed from the library list when the command is completed. The help identifier for the command help modules in panel group MYAPPHLP starts with the name of the command object that is created by the CRTCMD command.