!tso cmd command
The !tso cmd command executes a TSO command on one or more members.
When using this command as a line command, the TSO command can be entered in the PROMPT field.
Syntax
Operands
- tsocmd
- The name of a TSO command.
- member_name
- A member name or pattern.
- parameter_string
- An optional parameter string to be passed to the command.
Usage notes
The TSO command is passed the library name (member name) as the first parameter, followed by the volume serial and the rest of specified parameters.
The volume parameter is optional and is either omitted (by default), or included (see above) based on the current DSC customization.
If the TsoCmd parameter is not a valid TSO command, a CLIST or REXX EXEC with the same name will be executed.
When SHOWCMD ON is in effect, you are first prompted with a display of the full command. You can verify and further modify it before execution. You may also enter a QUIT command in order to abort TSO command execution over a group of selected members.
Example
Assuming a current library name of MROTTER.JCL, on volume SCLM09, the following examples illustrate the ! command execution:
!RUN1 MEM7 TEST Execute RUN1 'MROTTER.JCL(MEM7)' SCLM09 TEST.
! MEM* RUN2 Execute RUN2 'MROTTER.JCL(MEM1)' SCLM09.
Execute RUN2 'MROTTER.JCL(MEM2)' SCLM09, etc.
NAME PROMPT
! MEM3 RUN1 execute RUN1 'MROTTER.JCL(MEM3)' SCLM09 .
! MEM5 display ? 'MROTTER.JCL(MEM5)' SCLM09 to be
completed before execution . 