z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

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

In previous releases, the tsocmd command was available for download from the Tools and Toys z/OS UNIX Web page at http://www.ibm.com/systems/z/os/zos/features/unix/bpxa1toy.html. As of V1R12, tsocmd is shipped as part of the base release. The base release version of tsocmd takes advantage of this REXX support.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014