I am trying to add 10 days to the current date in my code. So I am using the below mentioned code.
Input date : 20160406
DISPLAY 'W-CURRENT-DATE-Z' W-CURRENT-DATE-Z
COMPUTE WS-INTEGER-X =
FUNCTION INTEGER-OF-DATE(W-CURRENT-DATE-Z)
DISPLAY 'WS-INTEGER-X ' WS-INTEGER-X
COMPUTE WS-INTEGER-X =
FUNCTION INTEGER-OF-DATE(W-CURRENT-DATE-Z)
DISPLAY 'WS-INTEGER-X ' WS-INTEGER-X
This is the output I am getting.
W-CURRENT-DATE-Z20160406
WS-INTEGER-X 672
WS-INTEGER-X 672
I think its returning the Gregorian day. Could anyone help me?