|
How to: |
The ITOPACK function converts a large binary integer in a non-FOCUS data source to packed-decimal format.
You must specify how many of the right-most bytes in the input field are significant. The result is an 8-byte packed-decimal field of up to 15 significant numeric positions (for example, P15 or P16.2).
Limit: For a field defined as 'PIC 9(15) COMP' or the equivalent (15 significant digits), the maximum number that can be converted is 167,744,242,712,576.
ITOPACK(maxbytes, infield, output)
where:
Numeric
Is the maximum number of bytes in the 8-byte input field that have significant numeric data, including the binary sign.
Valid values are:
A8
Is the field that contains the binary number. Both the USAGE and ACTUAL formats of the field must be A8.
Numeric
The format must be Pn or Pn.d.
| WebFOCUS | |
|
Feedback |