The DO REMARK statement adds a user-defined remark to the Control-M/Analyzer Rule Activity report and the Rule Activity display (screen BA). The remark usually describes the results of the current Control-M/Analyzer invocation. The remark can be displayed in the Rule Activity List screen to provide a user-specified summary of invocation results.
If several DO REMARK statements are specified in the rule, only the last one is retained and added to the Rule Activity report.
Control-M/Analyzer AutoEdit variables and Local variables (preceded by the %% operator) can be embedded in the DO REMARK statement. These variables are resolved (replaced) at time of rule execution. For additional information on AutoEdit processing see Control-M/Analyzer Variables.
Example
Specify different remarks to be displayed on the Control-M/Analyzer Rule Activity display (screen BA) according to the value of variable SUM.
Figure 217 DO REMARK Statement Example
LIBRARY : CTB.PROD.RULES RULE : RULCURR
COMMAND ===> SCROLL===> CRSR
+-----------------------------------------------------------------------------+
IF SUM > 1000000.00 C
DO SHOUT TO U-M18 URGENCY R
= PLEASE CHECK CURRENCY FILE; SUM COMPUTED IS %%SUM
DO REMARK = SUM IS OVER 1000000.00 SUM=%%SUM
DO COND = NOTOK-%%SYSJOBNAME 0704 +
DO TERMINAT = NOTOK COD 0055
DO
ELSE
DO REMARK = SUM IS NOT OVER 1000000.00 SUM=%%SUM
DO TERMINAT = OK COD 0000
DO
(ENTER "ALWAYS", "IF")
===========================================================================
EXECUTE UPON C
ON
======= >>>>>>>>>>>>>>> END OF RULE DEFINITION PARAMETERS <<<<<<<<<<<<<<< =====
PLEASE FILL IN RULE DEFINITION. 11.44.30
Parent Topic |