Using commands from a program
This section describes the use of commands in a REXX program.
The main categories of commands are:
- REXX/CICS commands
- These commands provide access to miscellaneous REXX/CICS facilities. See REXX/CICS Commands.
- CICS commands
- These commands implement the EXEC CICS commands that application programs use to access CICS services. See CICS command summary.
- SQL statements
- These statements are prepared and executed dynamically. See REXX/CICS DB2 interface.
- EDIT commands
- These commands invoke the editor facilities from the REXX/CICS macros. See REXX/CICS text editor.
- RFS commands
- These commands are for the REXX File System (RFS). See REXX/CICS File System.
- RLS commands
- These commands are for the REXX List System (RLS). See REXX/CICS List System.
When a program issues a command, the REXX special variable RC is set to the return code. A program can use the return code to determine a course of action within the program. Every time a command is issued, RC is set. Therefore, RC contains the return code from the most recently issued command.