schtuffseeker
Technical User
I am trying to provide users with a way of converting dates from Julian to USA format and vice-versa.
All works well until I input a USA date and attempt to convert to Julian.
Below is some code
WHEN SUBSTR(INDATE,3,1) = "/" THEN DO
OGREG = INDATE
DOW = DATE("W", INDATE ,"U")
OJUL = DATE("J", INDATE ,"U")
The last statement fails showing "incorrect call to routine", yet DOW has the correct day-of-week.
I am running on Z/OS V1R6.
I was wondering if anyone had run accross this, and how they got around it.
All works well until I input a USA date and attempt to convert to Julian.
Below is some code
WHEN SUBSTR(INDATE,3,1) = "/" THEN DO
OGREG = INDATE
DOW = DATE("W", INDATE ,"U")
OJUL = DATE("J", INDATE ,"U")
The last statement fails showing "incorrect call to routine", yet DOW has the correct day-of-week.
I am running on Z/OS V1R6.
I was wondering if anyone had run accross this, and how they got around it.