To invoke CULLUS34:
Col 2 ▼ RPT-nn7sss CALL US34 (field-name result-v input-length-vn)
The hexadecimal representation of each digit is in the range X'F0' through X'F9'. Negative values contain the negative sign in the zoned position of the last byte. Positive values contain an F in the zoned position of the last byte.
If the length of the input field exceeds 16, no conversion occurs.
Example
This example converts numbers that are stored in packed decimal format to zoned decimals. Receiving fields hold the first five, next three, and last five digits.
The following code:
IN 200 F 400 REC PKD-NUM 160 7 3 IN 13 MB=DUMMY REC NUMBER 1 13 REC FIRST-FIVE 1 5 REC NEXT-THREE 6 3 REC LAST-FIVE 9 5 01OUT 80 D 013CULLUS34 01410001 ' ' 0151*002 NUMBER FN HH 'THE NUMBER' 0151*003 NEXT-THREE HH 'MIDDLE THREE' 'DIGITS' 017001 CALL US34 (PKD-NUM NUMBER 7)
REPORT NO. 01 CULLUS34 mm/dd/yy PAGE 1 MIDDLE THREE THE NUMBER DIGITS 0000003800000 038 0000003100000 031 0000003300000 033 0000008000000 080 0000003800000 038 0000003750000 037 0000005450000 054
Copyright © 2014 CA.
All rights reserved.
|
|