TSO/E REXX commands in REXX EXECs


BMC AMI Ops Automation supports the following TSO/E REXX commands if you specify the ADDRESS MVS command prior to issuing the command. For example:

address mvs "execio 3 diskr input1 (stem s1. finis)"


For additional information about syntax and usage of the commands, see the TSO/E: REXX Reference guide.

Important

The descriptions for these TSO/E REXX commands are from the IBM documentation, TSO/E: REXX Reference, "TSO/E REXX Commands."

Command

Description

DELSTACK

Deletes the data stack that was most recently created by the NEWSTACK command, and all elements on it

If a new data stack was not created, DELSTACK removes all the elements from the original data stack.

DROPBUF

Deletes the data stack buffer that was most recently created by the MAKEBUF command, and all elements on the data stack in the buffer

To remove a specific data stack buffer and all buffers created after it, issue the DROPBUF command with the number of the buffer.

EXECIO

Performs input and output operations to and from a data set, a stack, or a list of variables

MAKEBUF

Creates a new buffer on the data stack

The MAKEBUF command can be issued from REXX EXECs that execute in both the TSO/E address space and non-TSO/E address spaces.

NEWSTACK

Creates a new data stack and hides or isolates the current data stack

Elements on the previous data stack cannot be accessed until a DELSTACK command is issued to delete the new data stack and any elements remaining in it.

QBUF

Queries the number of buffers that were created on the data stack with the MAKEBUF command

QELEM

Queries the number of data stack elements that are in the most recently created data stack buffer

QSTACK

Queries the number of data stacks in existence for an EXEC that is executing

SUBCOM

Queries the existence of a specified host command environment

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*