Previous Topic: Confirm Your ChoiceNext Topic: Display the Changed Panel


Use the Modeling Feature

To use the modeling feature, you must have a model screen selected. Since you can select a model screen at any time while defining rules or rule actions by pressing PF9 (Select), it is not necessary to define a model screen before you begin defining rules. How to select a model screen is covered in the previous section, Locate and Select a Model Screen. If you need to change a model screen you have already selected, see the section, Edit a Rule in the chapter "Rules Function".

After you have selected a model screen for a rule, it will be automatically displayed whenever you select a rule action to define from the Add Rules—Rule Actions menu for that rule. For example, to define the date as a variable field, select 3 from the Add Rules—Rule Actions menu as shown next.

-----------------------ADD RULES - RULE ACTIONS---------------     ENTER COMMAND ===> 3                                                                                                                                   RULE NAME: RUL00001            RULESET NAME:     TCADS.CCC.ORDERAPP.001                                        TEST STREAM NAME: TCADS.CCC.ORDERAPP.001                                                                                DESCRIPTION  ===>                                                                   ===>                                                                                                                                          1  FIELD RECOGNITION                   11  GENERATE FIELD VALUE        2  SCREEN RECOGNITION                  12  INSERT SCREENS        3  VARIABLE FIELD                      13  DELETE SCREENS        4  DELETE FIELD                        14  CUT SCREEN FIELD        5  MOVE FIELD                          15  PASTE SCREEN FIELD        6  CHANGE FIELD VALUE                  20  USERID LOGGING        7  NEW FIELD                           21  TERMINAL ID LOGGING        8  CHANGE AID KEY                      22  APPLICATION ID LOGGING        9  CHANGE CURSOR LOCATION                                                      10  CHANGE WCC VALUES                                                                                                                                                                                                 F1-HELP       F2-PREVIEW     F3-END       F4-RETURN       F9-SELECT

When you press Enter, the model screen you have selected will appear in the Rules: Modified Screen panel, as shown next.

 CCC.ORDERAPP.001 ------------RULES: EXPECTED SCREEN----------------------------  ENTER COMMAND ===>                                           OUT RECORD:      2  TCA4041 - MOVE CURSOR TO VARIABLE FIELD AND PRESS "SELECT" KEY                      ----+----|----+----|----+----|----+----|----+----|----+----|----+----|----+    |  DATE 02/06/98               CAROL'S COOKIES COMPANY           RELEASE 6.2     |  TIME 13:23:43                      MAIN MENU                                  |                                                                                4                                                                                |                                                                                |                                                                                |  ENTER OPTION:                                                                 8                                                                                |                                                                                |          1) PLACE AN ORDER                                                     |                                                                               12          2) CHECK STATUS OF AN ORDER                                           |                                                                                |                                                                                |                                                                               16                                                                                |                                                                                |                                                                                |                                                                               20                                                                            

Move the cursor to the first character of the DATE field and press PF9 to select it. The Add Rule Actions—Variable Field panel appears with the field values automatically filled in. A sample is shown next.

------------------ ADD RULE ACTIONS - VARIABLE FIELD------------------08:00:31  ENTER COMMAND ===>                                                                                                                                   RULE NAME: RUL00001           RULESET NAME:     TCADS.CCC.ORDERAPP.001                                        TEST STREAM NAME: TCADS.CCC.ORDERAPP.001                                                                                 VARIABLES:                                                                   ROW  COL  LEN   VALUE OR DESCRIPTION                                       01   007  008   02/06/98______________________________________________                     ______________________________________________________                     ______________________________________________________                                                                                                                                                                                                                                    F1-HELP  F2-PREVIEW  F3-END  F4-RETURN  F9-SELECT   

If the values are correct, press PF3 (End) to return to the Add Rules—Rule Actions menu where you can continue to define additional rule actions.