RUN(command-name) Required keyword. Specifies the name of a command to be run. The command name must be 2-8 characters. Coding the keyword ACTION RUN(x), where x is a 1-character command name, results in an error condition. ISPF searches for the command in the application, user, site, and system command tables, if they are defined.
You can use the ISRROUTE command, which is an ISPF command in ISPCMDS, to invoke the SELECT service. The ACTION RUN statement is as follows:
ACTION RUN(ISRROUTE) PARM(’SELECT your-select-command-parms’)
where your-select-command-parms contains all the required parameters for the invocation of the SELECT service. This allows your dialog not to have to create a separate command in the application command table for every RUN statement coded within your dialog panels.
Here is an example of invoking the SELECT service from an ACTION RUN statement:
ACTION RUN(ISRROUTE) PARM(’SELECT PGM(USERLIST) NEWAPPL(USR)’)
Partager