This page (revision-4) was last changed on 26-Nov-2021 10:22 by JMyers

This page was created on 26-Nov-2021 10:22 by JMyers

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
4 26-Nov-2021 10:22 1009 bytes JMyers to previous
3 26-Nov-2021 10:22 871 bytes JMyers to previous | to last
2 26-Nov-2021 10:22 819 bytes JMyers to previous | to last
1 26-Nov-2021 10:22 806 bytes JMyers to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed one line
MOD - Modulus
!!MOD - Modulus
At line 3 changed one line
Statement: Find the number of months that have passed since an employee’s last anniversary, and store the value into the Variable Months since Ann.
Statement: Find the number of months that have passed since an employee’s last anniversary, and store the value into the Variable Months since Ann.
At line 5 changed 3 lines
00010 LET V MONTHS TOTAL MBT DB EEM.HIRE_DATE $S PERIOD-END-DATE 00020
00020 LET V MONTHS SINCE ANN MOD V MONTHS TOTAL N 12 99999
99999 EXIT 99999
|00010| LET| V| MONTHS TOTAL| MBT |DB| EEM.HIRE_DATE| $S| PERIOD-END-DATE| 00020|
|00020 |LET| V| MONTHS SINCE ANN| MOD| V| MONTHS TOTAL| N| 12| 99999|
|99999 |EXIT| | | | | | | |99999|
At line 9 changed 2 lines
In the example above, the employee was hired Jan 1, 1998, and the pay period end date was June 1, 1999. The months between the two dates are divided by 12 months and the remaining months are returned.
June 1/99 – Jan1/98 = 18 18/12 = 1.5 12*0.5 = 6
In the example above, the employee was hired Jan 1, 1998, and the pay period end date was June 1, 1999. The months between the two dates are divided by 12 months and the remaining months are returned.\\ \\
|June 1/99 – Jan1/98 = 18 | 18/12 = 1.5 | 12*0.5 = 6