EM - End of Month #

End of Month (EM) will return the last day of the month of the date found in Operand 3.

Statement
Find the 1st day of the month following the employee’s hire date, and store it into the Variable 1st Day of Next Mth.

LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010 LETV1ST DAY OF NEXT MTHEMDBEEM.HIRE_DATEA+1D00020

In the example above, the employee was originally hired on May 17, 1979. The EM operator will identify the last day of that month, May 31, 1979. Operand 3 will add one day to the EM date and return the value of the 1st Day of Next Mth, June 1st, 1979.

Refer to BD for possible Operand 3 values.