Hello guys,
I want to convert a variable value from char to decimal.
And meet a problem when using %DEC, error msg is :
"The first parameter for %DEC or %DECH is not valid."
Here is the coding :
PF
--
A PUTDAT 8 0 COLHDG('Date')
RPGLE
-----
D XYMD8 S 8A
C EVAL PUTDAT = %DEC(XYMD8:8:0)
How to solve it ?
Thanks
I want to convert a variable value from char to decimal.
And meet a problem when using %DEC, error msg is :
"The first parameter for %DEC or %DECH is not valid."
Here is the coding :
PF
--
A PUTDAT 8 0 COLHDG('Date')
RPGLE
-----
D XYMD8 S 8A
C EVAL PUTDAT = %DEC(XYMD8:8:0)
How to solve it ?
Thanks
Comment