Hi,
I have a flat file, which I am reading by doing a SUBSTR and passing the values to a zoned field without decimal, declared:
d wReg2N s 63s 0
d f2 $ s 50a
When the SUBSTR of the flat file, I get this value:
F2 $ = '22806982806982906982 '
When I pass it to the variable Zoned without decimal
wReg2n =% int (f2 $);
I get this error:
The receiver value is too small to contain the result => MCH1210
I've read that a zoned field can have up to 30 occupied positions, but here I only have 20.
Why is this happening? How can I move this value to this field?
Comment