Previous Topic

Next Topic

Book Contents

Book Index

Example 2

This example illustrates the specification of variables containing the %% operator in statement DO PRINT. These variables are replaced by their current value each time statement DO PRINT is performed.

Figure 211 DO PRINT Statement – Example 2

     LIBRARY : CTB.PROD.RULES                                RULE : DOSET

 COMMAND ===>                                                    SCROLL===> CRSR

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

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

   EXECUTE CHECK    UPON                                                   C   

   ON DATA                                                                     

   ALWAYS                                                                      

 DO SET      = COUNTER=COUNTER+1                                       C   

 DO                                                                        

   IF       SICK > 90   VAC > 30                                           C  

 DO PRINT    = |  %%COUNTER  |   %%NAME    |  %%SICK   |  %%VAC     F   C 

 DO SET      = ERRORS=ERRORS+1                                         C   

 DO                                                                        

            (ENTER "ALWAYS", "IF" OR "ELSE")                               

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

   EXECUTE          UPON                                                   C   

   ON                                                                          

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

 PLEASE FILL IN RULE DEFINITION.                                        13.11.29

Parent Topic

DO PRINT: Automated Balancing Statement