EM_OPERATOR
Back to current versionRestore this version

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. Line CMD OT Operand 1 OPER OT Operand2 OT Operand3 If Goto Else GoTo 00010 LET V 1ST DAY OF NEXT MTH EM DB EEM.HIRE_DATE A +1D 00020

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 in page 56 for possible Operand 3 values.