I have coded a new command rule that queries a global variable and provides status to operations. I am receiving an IEE305I "INVALID COMMAND" when my command is entered in SDSF, but the rule runs and does produce the desired result:
IEE305I XXXXX COMMAND INVALID
Release : 14.0
Change the RETURN statement to:
RETURN ACCEPT
From documentation:
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