EOM - End Of The Month Check#

The EOM (End of Month) command checks the pay period on which this UserCalc is being performed to see if it contain the last day of a calendar month.

i.e. A specific pay period is May 20th to June 3rd. In this case, the last day of a calendar month (May 31) is contained within the pay period. May 31st would be the EOM looked for.

This command has a true path (If Goto) and a false path (Else Goto).

Statement:For any pay period containing the end of a month date, a warning should be issued for any part time employees who worked more 30 hours or more.

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010 EOM 0002099999
00020IFDBDGR.GROUP_CODEIN$LPT GROUPS 0010099999
00100IFEMHOURS WORKEDGT$CPT MAX HRS 0020000110
00110LETVEOMEM$SPERIOD-START-DATE 00120
00120LETVTOTAL HOURSELPLETHOURS WORKEDVEOM00130
00130LETVTOTAL HOURSADDVTOTAL HOURSEMHOURS WORKED00140
00140IFVTOTAL HOURSGT$CPT MAX HRS 0020099999
00200LETVMAX HRSCHAR$CPT MAX HRS 00210
00210LETVWARNING MESSAGEEQAEE has surpassed max PT Hrs ofVMAX HRS00220
00220MSGVWARNING MESSAGE 99999
99999EXIT 99999