ANN – Anniversary Check#

ANN is provided to allow a simple way to check if the anniversary of a chosen date falls in the current pay period. This command has a true path (If Goto) and a false path (Else Goto).

Statement
If this pay period includes the employee’s birthday, give the employee a $10.00 birthday bonus (stored in PC 150), else Exit.

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010 ANN BD DB EID.BIRTH_DATE 00100 99999
00100 LETPC150EQN10 99999
99999 EXIT 99999
Statement
If the pay period includes the employee’s anniversary date, give 1% of the employee’s annualized salary as a pension contribution (stored in PC 6000).

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010ANN BDDBEEM.HIRE_DATE 0010099999
00100LETVANNUALIZED SALARYWAGEWBYR 00110
00110LETPC6000PRCVANNUALIZED SALARYN1.0000120
00120LETPC6000RDNPC6000N.0199999
99999EXIT 99999


Notes #

Click to create a new notes page