I want to convert date-time n yyyymmdd format to integer format.
I found this function called "integer of date" from IBMMAINFRAMES.COM
My piece of code is as follows....
WORKING-STORAGE SECTION.
01 DATE-TIME.
05 WS-CC PIC 99 VALUE 19.
05 WS-YY PIC 99 VALUE 98.
05 WS-MM PIC 99 VALUE 06.
05 WS-DD PIC 99 VALUE 17.
05 WS-HH PIC XX VALUE '10'.
05 WS-MM PIC XX VALUE '45'.
05 WS-SS PIC XX VALUE '21'.
05 WS-SSHH PIC XX VALUE '04'.
01 OUTPUT1 PIC 9(16).
PROCEDURE DIVISION.
MAIN-PARA.
COMPUTE OUTPUT1 = FUNCTION INTEGER-OF-DATE(DATE-TIME)
DISPLAY OUTPUT1.
STOP RUN.
I get an abend stating the following message.
"Function argument "DATE-TIME" did not have the correct
type for function "INTEGER-OF-DATE". The statement was
discarded."
I would be grateful if sumone solves this issue...
Thanks in advance