Previous Topic: )INIT Section—Enable a RuleNext Topic: )TERM Section—Disable a Rule


)PROC Section—Valid Return Statement Values

The RETURN statement in the )PROC section of an AOF rule works differently according to the type of event that the rule is acting upon. Valid RETURN statement values are different in a )MSG rule than a )CMD rule. An unrecognized return value (for example, a misspelled value) defaults to a value of NOACTION.

WARNING! Make sure you use the valid RETURN values associated with each rule type. Using RETURN values for the wrong AOF rule type does not result in a syntax error and does not default to NOACTION. The results may not be what you expect them to be.

The )PROC section on an AOF rule has the following format:

)MSG $HASP100
)PROC 
/* Suppress $HASP100 message using the SUPPRESS RETURN value */  
/* available in )MSG rules.                                  */  
return 'SUPPRESS' 

)CMD MOVECICS
)PROC   
/* This pseudo command rule allows operators to enter the    */ 
/* command MOVECICS from the console to initiate the OPS/REXX*/
/* program to move all CICS regions. The RETURN value of     */
/* 'ACCEPT' in a )CMD rule causes z/OS to not process this   */ 
/* pseudo command.                                           */
address OSF "OI P(MOVECICS)" 
return 'ACCEPT'

For a list of valid RETURN statement values for each AOF rule type and an outline of the coding guidelines, see the chapter “Coding Each AOF Rule Type.”