Previous Topic: Example 4Next Topic: Return Codes


COMMAND User Exit

Use the COMMAND user exit, a REXX-only user exit, to examine all commands and then accept, change, or reject their execution. To activate this exit, include the COMMAND user exit on the USEREXIT configuration file record. For more information, see USEREXIT Record.

The default environment for user exits defined by the USEREXIT record is CA VM:Tape. Any command that is not a REXX command is considered a CA VM:Tape primitive, a CP command, or a CMS command.

The COMMAND user exit does not pass any parameters; it works through two CA VM:Tape primitives, EXTRACT and SET. These primitives are modeled after the XEDIT subcommands by the same name. For information about the EXTRACT and SET primitives, see the Macro Primitive Reference.

Note: If you prefer to use a user exit written in assembler, you can use the USERCMND user exit. The USERCMND user exit is similar to COMMAND user exit except that it is written in assembler. For more information about using the USERCMND user exit, USERCMND User Exit.