Previous Topic

Next Topic

Book Contents

Book Index

Corresponding Rule Definition Under Control-M/Analyzer

The SYSOPT System variable indicates the Control-M/Analyzer invocation method. When the Control-M/Analyzer Runtime Environment is invoked by a user program call, the SYSOPT System variable automatically contains the value CTBUSER. This variable can be specified as criteria in the rule definition to determine if an ON block should be processed.

RARGnn System variables contain the values of arguments passed from the calling program. These arguments can be used by the rule, stored in the Database, manipulated, and so on, as illustrated in Figure 383.

Figure 383 Arguments Stored as System Variables

         LIBRARY : CTB.PROD.RULES                                RULE : CTBUPRG

 COMMAND ===>                                                    SCROLL===> CRSR

+-----------------------------------------------------------------------------+

 OWNER   M66                      GROUP GENERAL                             

 UPDATED 08/08/00  -  15:53:39    BY M66                                    

 DESC    STORE VALUES PASSED FROM A USER PROGRAM IN THE DATABASE.          

 OPTIONS                                                                    

 ===========================================================================

 EXECUTE STORE    UPON SYSOPT='CTBUSER'                                  C  

 ON DATA                                                                    

 ALWAYS                                                                     

   /* ARGUMENT 1 IS GROUP NAME                                             

   /* ARGUMENT 2 IS VARIABLE NAME                                          

   /* ARGUMENT 3 IS VARIABLE VALUE                                          

   DO SET      = DB_%%RARG01.%%RARG02='%%RARG03'                         C  

   DO TERMINAT = OK       COD 0000                                          

   DO                                                                       

              (ENTER "ALWAYS", "IF")                                        

 ===========================================================================

 EXECUTE          UPON                                                   C  

 ON                                                                         

======= >>>>>>>>>>>>>>> END OF RULE DEFINITION PARAMETERS <<<<<<<<<<<<<<< =====

PLEASE FILL IN RULE DEFINITION.                                        16.01.34

Parent Topic

Passing Arguments to and from Control-M/Analyzer