310 pts.
 How to avoid sign
hi, i have a char field of 20 length, front end that field is alphanumeric , now suppose the data is -0.9, and i need to apply some calculations on it, when i move it into numeric feild for that , one dump occurs that is decimal data error. please help me how can i do it..... dump is---- decimal-data error at statement 175. A packed or zoned value does not contain valid numeric data. A digit and/or sign is not valid. ----- Thaks & Regards Ambrish Srivastava

Software/Hardware used:
ASKED: November 19, 2008  6:51 AM
UPDATED: November 20, 2008  12:56 PM

Answer Wiki:
instead of move use the function %DEC( charFld : width : dec ) C eval fldn = %dec(%trim(char20):10:5) Thanks a lot.....
Last Wiki Answer Submitted:  November 20, 2008  12:54 pm  by  graybeard52   3,115 pts.
All Answer Wiki Contributors:  graybeard52   3,115 pts. , philpl1jb   44,180 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

thanks a lot

 310 pts.