Previous Topic: Initialization, Processing, and Termination Sections of CMD RulesNext Topic: Other RETURN Statement Considerations


RETURN Statements in the )PROC Section of a CMD Rule

The OPS/REXX RETURN statement specifies the final disposition of a z/OS command.

The following are valid values for a RETURN statement in the processing section of a command rule:

NOACTION

Allows z/OS to process a command (after CMD rule processing, if any)

ACCEPT

Prevents z/OS from processing a command (after CMD rule processing, if any)

REJECT

Causes z/OS to reject a command as invalid, resulting in message IEE707I cmd NOT EXECUTED (after CMD rule processing, if any)

Default: RETURN 'NOACTION'

The return values listed here are character constants rather than keywords. An unrecognized return value (for example, a misspelled value) defaults to a value of NOACTION.