I am running V5R2 and have a freeform date question.
I have a field that is defined as a date field (Date_Iso).
I want to move it into our 9.0 numeric data field.
Because of V5R2 I use the following code:
Lioidt = %Dec(%Char(Date_Iso):9:0);
However, I get an error message:
"A character representation of a numeric value is in error"
Debug shows me that Date_Iso contains '2005-07-10'
Can anyone provide assistance?
Thanks,
I have a field that is defined as a date field (Date_Iso).
I want to move it into our 9.0 numeric data field.
Because of V5R2 I use the following code:
Lioidt = %Dec(%Char(Date_Iso):9:0);
However, I get an error message:
"A character representation of a numeric value is in error"
Debug shows me that Date_Iso contains '2005-07-10'
Can anyone provide assistance?
Thanks,
Comment