BW - Beginning of Week #

Beginning of Week (BW) will return the 1st day of the week (Sunday) of the date found in Operand 2.

Statement
If an employee is terminated in the 1st week of the pay period, divide the Life Plan deduction collected in half (the deduction is stored in PC 1700).

LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010IFDBDES.STATUS_CODEEQATERMINATED 0010099999
00100LETVWEEK 1 END DATEBW$SPERIOD-END-DATE 00110
00110IFDBEEM.TERMINATION_DATEGE$S PERIOD_START_DATE 00200 99999
00200IFDBEEM.TERMNIATION_DATELEVWEEK 1 END DATE 00300 99999
00300IFPC1700GTN0 00400 99999
00400LETPC1700DIVPC1700N299999
99999EXIT 99999

As with BD, the result of BW may also be changed by a value in Operand 3.

Refer to BD in Section 6.5.2. for possible Operand 3 values.


Notes #

Click to create a new notes page