What is a Host Command Environment ?
An environment for executing commands is called a host command environment . Before a program runs, an active host command environment is defined to handle the commands. . When the language processor encounters a command, it passes the command to the host command environment for processing.
When a REXX program runs on a host system, there is at least one default environment available for executing commands.
The
host command environments
are as follows:
- REXXCICS
- This is the default REXX/CICS command environment. All REXX/CICS, SQL, EDIT, RFS, or RLS commands can be issued from this environment. However, CICS commands must be prefixed with CICS, SQL statements with EXECSQL, EDIT commands with EDITSVR, RFS commands with RFS, and RLS commands with RLS.
- CICS
- This is an optional environment that only issues CICS commands. The first word of the host command string is the command name (for example: SEND, RECEIVE).
- EXECSQL
- This is an optional environment that issues SQL statements (SELECT) to the CICS/DB2 interface.
- EDITSVR
- This is an optional environment that creates the edit session.
- FLSTSVR
- This is an optional environment that executes commands for the File List Utility.
- RFS
- This is an optional environment that executes commands for the REXX File System.
- RLS
- This is an optional environment that executes commands for the REXX List System.
Note: It is recommended that the default environment of
REXXCICS be used for all commands (that is, the ADDRESS instruction
should not be specified).