BM_OPERATOR
Back to current versionRestore this version

BM - Beginning of Month Beginning of Month (BM) will return the 1st day of the month of the date found in Operand 3. Statement: Find the 1st day of the month that the employee was hired and store it into the Variable 1st of Hire Month.

LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010 LET V 1ST OF HIRE MONTH BM DB EEM.HIRE_DATE 00020

In the example above, if an employee was originally hired on May 17, 1979, the value returned to 1st of Hire Month would be May 1, 1979. As with BD, the BM result may also be changed by a value in Operand 3. Refer to BD in section 6.5.2. For possible Operand 3 values.