Previous Topic: Qualifier Definition of @SHIFT2 & @SHIFT3

Next Topic: Qualifier Definition of @SHIFT2W & @SHIFT3W


Example 2: Qualifying an ORD by Day of Week & Start Time

This example shows how to continue the definition of shift qualifiers to include the definition of @SHIFT1W as shown in Example 2 in Example 2: Defining Conditional Rates by Qualifier.

The same logic applies to these definitions as that used in earlier examples. @SHIFT1W represents a true condition when the field START-TIME is less than or equal to 1600, and START-TIME is greater than or equal to 0800, and the day of week is greater than or equal to 6 (Saturday) for MBJ ORD Types. When this condition is true, the rate used in the calculation comes from the algorithm for @SHIFT1W shown in Example 2: Defining Conditional Rates by Qualifier.

USERID CA PMA Chargeback MM/DD/YY HH:MM:SS __ Acctdefs Cbdefs Query Data Period Options Exit Help +-- CBCELMQ --------- Qualifier Entry -------------------+ | Panel Exit Help | | ------------------------------------------------------ | | Type information. Then select an action. | | | | Version . : PROD | | ORD Type . : MBJ | | Qualifier : @SHIFT1W | | | | ORD More: - + ____ Row 0001 of 0003 | | Cmd Field/@Qualifier Rop Field/Constant Lop | | | | _ START-TIME______ >= '0800'__________ and | | _ START-TIME______ =< '1600'__________ and | | _ DAY-OF-WEEK_____ >= '6'____________ ___ | | _ ________________ __ ________________ ___ | | | | F2=Xref F5=Save F6=Delete F7=Bkwd F8=Fwd F11=Expand | +--------------------------------------------------------+ Command ===> ____________________________________________________________ F1=Help F3=Exit F4=Prompt F9=Command F10=Action Bar F12=Cancel PA1=Susp

In Example 2 in Example 2: Defining Conditional Rates by Qualifier, we created qualifier names for two more shifts, @SHIFT2W and @SHIFT3W, which also have to be defined. Their definition is shown next.