Previous Topic: OPS/REXX Interface with ISPF Dialog Management ServicesNext Topic: Support for the TSO Host Command EXECIO


OPS/REXX Interface with TSO

Use the ADDRESS TSO statement to pass host commands to the TSO command processor. For example, the following statement tells the OSF to submit a command for execution in an OSF TSO address space to list the attributes of data set SYS1.LINKLIB:

ADDRESS TSO "LISTDS 'SYS1.LINKLIB'"

If you execute the above instruction using the OX or OI command or through an AOF request rule executed from a TSO session, the TSO LISTDS command executes in the address space of the user. In this case, the output from the TSO command returns to the REXX program in its external data queue.

If any AOF rule other than a request rule executes the above instruction, the LISTDS command goes to a CA OPS/MVS server for execution there. Should this occur, no output returns to the AOF rule.