Opps, COMP-3 data value is exactly as seen 049484071C translates to
49484071+,
the digits seen are the value of the data, without decimal points or commas.
Your COBOL program should be able to just pass them thru, not translation
necessary.
Bob Schlosser
(407) 727-5893
<snip>
Now, I dumped 049484071C into the Windows calculator, scientific view,
hex
mode, and converted to decimal. I got 1,229,471,857, which overflows
S9(9)
anyway. So there may be another issue. It looks like the original field
can
be ten chars. The windows calculator only lets me enter 8 Fs, but
converting
to decimal and multiplying by 255, I get a maximum value of
1,095,216,660,225. It looks like you could conceivably need a 9(13)
DISPLAY
field as a target. Or, you could just
COMPUTE output = INPUT
ON SIZE ERROR PERFORM INPUT-SIZE-ERROR-ROUTINE
END-COMPUTE
Greg Stigers
Senior Consultant
http://www.cgiusa.com
|