Examples

To run the TSO/E TIME command:
address tso 'time'
To trap command output and print it:
call outtrap out.
   address tso 'listc'
   do i=1 to out.0
      say out.i
   end
To run a REXX exec in TSO/E:
address tso
   "alloc fi(sysexec) da('schoen.rexx') shr"
   "myexec"
This is a functional replacement for the tsocmd command:
/* rexx */
   address tso arg(1)
   return rc