Page 1 of 1

PACKED DECIMAL TO NUMERIC USING EASYTRIEVE

Posted: Fri Feb 15, 2008 8:11 pm
by SUBARNA ROY
Hi

I want to convert PACKED DECIMAL TO NUMERIC USING EASYTRIEVE

CLIENT-NUM 1 6 P 0

I want to write this field in an output field as a displayable field.

OUT-CLIENT-NUM 1 10 N 0

The simple assignement statement does not work in this case. OUT-CLIENT-NUM = CLIENT-NUM

Please help.

Posted: Tue Nov 18, 2008 1:32 pm
by Purusothaman
Try using Display to write the value to the file.

Code: Select all

OUT-CLIENT-NUM = CLIENT-NUM 

DISPLAY OUTFILE OUT-CLIENT-NUM