TSO Considerations
The TSO environment is available to scripts and therefore most TSO commands can be issued by the script. However, the following TSO commands can't be issued directly from within a Connector for RACF script.
-
Authorized TSO commands
-
SUBMIT command
Authorized TSO Command
Authorized TSO commands cannot be issued directly from a script.
To execute an authorized TSO command:
Use the CTSAEXC command processor.
For example, to activate command IDCAMS DEFINE (which is an authorized command processor) enter the following statement in the script:
CTSAEXC DEFINE ....define command arguments...
SUBMIT Command
The TSO SUBMIT command cannot be issued directly from a script.
To submit a job:
Use the CTSASUB command processor. CTSASUB receives the name of a DD statement which contains the job JCL image.
Example
Include the following statement in the script:
CTSASUB TEST
This activates command CTSASUB which reads DD statement TEST and writes its contents to the JES internal reader. An exclusive JES internal reader is allocated to the Connector for RACF started task via DD statement INTRDR in the task’s JCL. If no DD statement is specified for command CTSASUB, a default DD statement CTSJOBIN is used and its contents are written to the JES internal reader.