Invoking user commands from MSL
% line command in MSL is used to invoke user-written commands. It invokes CLISTs, REXX
execs, or other TSO commands accessible from ISPF. The name of the command is specified in the PROMPT column.
The MAILIT command is used on the NEWSTUFF member. MAILIT must be available to ISPF for processing (SYSPROC, SYSEXEC, linklist TSO command, etc.). Data Set Commander invokes the command with the data set name and the member name as the first parameter. In this example, the command is invoked as follows:
ISPEXEC SELECT CMD(MAILIT 'SAMPLE.TEST.MSGS(NEWSTUFF)')
In addition, Data Set Commander stores in the shared pool several ISPF variables that can be used by the invoked application. See Adding your own commands to MSL for the list of available variables and their usage.