The Rule Definition screen is used to define, display, and modify parameters of a specific rule. This screen can be entered directly from the entry panel or from the Rule List screen.
Rule parameters can fill more than one screen. Therefore, they are organized as a sheet of paper that can be "stretched" to any desired length. Use the scrolling conventions to scroll the rule parameters forward and backward.
Figure 44 Rule Definition Screen
          LIBRARY : CTB.PROD.RULES                                RULE : REORDER
  COMMAND ===>                                                    SCROLL===> CRSR
  +-----------------------------------------------------------------------------+
      OWNER   M43                      GROUP ACCT_INV                             
      UPDATED 07/07/00  -  15:25:54    BY M43                                     
      DESC    REORDER INVENTORY ITEM CHR001 IF NECESSARY                          
      OPTIONS                                                                     
      =========================================================================== 
      EXECUTE SETUP    UPON                                                   C   
      ON DATA                                                                    
      ALWAYS                                                                      
        DO SET      = MIN_CHR001=100                                          C   
        DO                                                                        
                   (ENTER "ALWAYS", "IF")                                         
      =========================================================================== 
      EXECUTE CHECK    UPON                                                   C   
      ON SYSOUT     PROCST          PGMST          DDNAME INVENTRY JOBNM          
         MODE PG    LINECT 0060    DATASTAMP
      WHEN LINE 001     - 060     COL 010     - 020              STOP    AND/OR   
           STRING = CHR001
        DO EXTRACT  = CURR_ONHAND                                                 
                      LEVEL 0 LINE +000 COL +050 - +060 PROCESS          TYP      
        DO                                                                        
      WHEN LINE         -         COL         -                  STOP    AND/OR   
           STRING =                                                               
        DO                                                                        
      =========================================================================== 
      EXECUTE COMPARE  UPON                                                   C   
      ON DATA                                                                    
      ALWAYS                                                                      
        DO SET      = DIFFER=ABS(CURR_ONHAND-MIN_CHR001)                      C   
        DO SET      = REASON=TOLER(CURR_ONHAND,MIN_CHR001,10)                 C   
        DO                                                                        
      IF       CURR_ONHAND>=MIN_CHR001                                        C   
        DO PRINT    = DO NOT REORDER; SURPLUS=%%DIFFER                    F   C   
        DO                                                                        
      ELSE                                                                        
        DO PRINT    = REORDER; DEFICIT=%%DIFFER                           F   C   
        DO                                                                        
                   (ENTER "ALWAYS", "IF")                                         
      =========================================================================== 
      EXECUTE          UPON                                                   C   
      ON                                                                          
   ====== >>>>>>>>>>>>>>> END OF RULE DEFINITION PARAMETERS <<<<<<<<<<<<<<< =====
   PLEASE FILL IN RULE DEFINITION.                                       16.33.11
Rule parameters are divided into the following basic groups:
One ON statement, an associated Data Identification parameter, and one or more DO statements constitute an EXECUTE block.
EXECUTE blocks are separated by a delimiter line (=====).
Each rule is composed of Basic Rule parameters, followed by one or more blocks of statements. In Control-M/Analyzer, a block of statements beginning with EXECUTE is called an EXECUTE block. These blocks are composed of data specifications, rule processing instructions and calculations, and actions that are performed as a result of the rule. The execute blocks in the screen examples are separated by separator (delimiting) lines (E). For more information about the EXECUTE block structure, see EXECUTE Block Structure Overview.
For a detailed explanation of the rule parameters, see Rule Definition.
Note: Parameters marked with the symbol M can have many occurrences. Whenever you fill in the last occurrence of the parameter on the screen, Control-M/Analyzer adds a new empty occurrence of that parameter that you may fill in. The only limit to the number of occurrences is the region size available for the application.
To delete a parameter on the screen, erase it by pressing the EOF key or blanking it out. If additional action is required, Control-M/Analyzer issues appropriate instructions.
The Rule Definition screen can also be edited using ISPF-like editing commands (such as copy, move, repeat, after, and before) in the Control-M/Analyzer Edit environment. For additional information about the Control-M/Analyzer Edit environment, see Editing Rule Definitions in the IOA Edit Environment.
The rule definition is automatically saved to a PDS member that can be edited using a standard editor such as the ISPF Edit facility. Rules originally defined using a standard editor can be displayed and edited in the Rule Definition screen. For additional information on creating and editing rule definitions by a standard editor see Rule Definition.
Parent Topic |