I'm having a problem converting a date in the ISO format into a numeric variable. Here is the declaration of the varaible along with the code used to get the current date:
D CURDATE S 8 0
C EVAL CURDATE = %UNS(%CHAR(%DATE():*ISO))
For some reason I get the following error:
"A character representation of a numeric value is in error."
I also tried using the %INT function and this gave me the same error. Can anyone tell me what the problem is here?
D CURDATE S 8 0
C EVAL CURDATE = %UNS(%CHAR(%DATE():*ISO))
For some reason I get the following error:
"A character representation of a numeric value is in error."
I also tried using the %INT function and this gave me the same error. Can anyone tell me what the problem is here?