Commands Used with REXX Execs
These are some of the commands used along with REXX execs. Command
formats, descriptions, and usage notes for these commands can be found
in z/VM: CMS Commands and Utilities Reference.
- EXECDROP
- Removes execs and macros from storage, or discontinues execs and macros in a saved segment.
- EXECIO
- Manages movement of lines between files or virtual devices, and the program stack or a variable. Also causes the processing of CP commands and recovers resulting output.
- EXECLOAD
- Loads an exec into storage.
- EXECMAP
- Lists execs and macros in storage and in active saved segments.
- EXECOS
- Resets the OS and VSAM environments under CMS without returning to the interactive environment.
- EXECSTAT
- Provides the status of a specified exec.
- GLOBALV
- Sets, maintains, and retrieves a collection of named variables.
- IDENTIFY
- Displays or stacks user ID, node ID, RSCS ID, date, time, time zone, and day of the week.
- IMMCMD
- Establishes or cancels Immediate commands from an exec.
- LISTFILE
- Lists information about CMS files in accessed SFS directories or on minidisks.
- NAMEFIND
- Displays or stacks information from a NAMES file (default userid NAMES).
- PIPE
- Invokes CMS Pipelines to process a series of programs or stages.
A series of stages is called a pipeline. Each stage manipulates or
handles data by:
- Using the stage commands and pipeline subcommands provided by CMS Pipelines. Several of the stage commands allow you to get and set REXX variables.
- Extending the set of CMS Pipelines stage commands and allowing you to write your own stage commands in the REXX language.
- QUERY
- Requests information about a CMS virtual machine.
- RDR
- Generates a return code and either displays or stacks a message that identifies the characteristics of the next file in your virtual reader.
- SET EXECTRACE
- Sets tracing ON or OFF for your REXX exec or EXEC 2 exec.
- SET INSTSEG
- Sets the access to the CMS installation saved segment to ON or OFF and sets the file mode where it is searched.
- VSCREEN WAITREAD
- Updates the virtual screen with data in the virtual screen queue, refreshes the physical screen, and waits for the next attention interrupt. This is entered from an exec.
- XEDIT
- Initiates XEDIT to create or modify a file.
These Immediate commands can be used along with REXX execs:
- HI (Halt Interpretation)
- TS (Trace Start)
- TE (Trace End)
The following exec samples show you how you can use some of the CMS commands with your REXX execs. You can use CMS commands in your execs to operate on your SFS files. Callable Services Library (CSL) routines are also available for use with REXX execs to operate on SFS files and minidisk files. For more information, see z/VM: CMS Application Development Guide for Assembler.