Last active
August 29, 2015 14:25
-
-
Save pdemby/f15ad3439987715529f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACCEPT WS-CCYYMMDD FROM CENTURY-DATE. | |
MOVE 30 TO WS-DAYS. | |
MOVE 0 TO WS-DATE-TEMP. | |
MOVE FUNCTION INTEGER-OF-DATE (WS-DATE-IN-NUM) TO WS-DATE-TEMP. | |
COMPUTE WS-DATE-TEMP = WS-DATE-TEMP + WS-DAYS. | |
MOVE FUNCTION DATE-OF-INTEGER (WS-DATE-TEMP) TO WS-DATE-OUT-NUM. | |
MOVE WS-DATE-OUT TO OUTPUT-DATE. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment