Download Pertec software manual - Electrovalue Technologies Inc
Transcript
The relationship between the number of bytes input and the number of ASCII characters output for each packed decimal field is: (NUMBER OF PACKED DECIMAL INPUT BYTES) x 2 = NUMBER OF ASCII OUTPUT BYTES ZONED DECIMAL: Zoned decimal numbers are similar to standard EBCDIC numbers in that every digit occupies one byte. The sign of a zoned decimal field, however, replaces the high-order nibble of the least significant byte. If the high-order nibble of the last byte is A, C, E, or F the value is positive. If the high-order nibble is B or D, the value is negative. Anything else (0-9) is illegal. Electrovalue software outputs the substitute sign character "?" when an illegal sign specification is detected. VALUE +1234 +1234 +1234 +1234 -1234 -1234 ON F1 F1 F1 F1 F1 F1 TAPE (HEX) F2 F3 A4 F2 F3 C4 F2 F3 E4 F2 F3 F4 F2 F3 B4 F2 F3 D4 FX/FXED ASCII OUTPUT " 1234" " 1234" " 1234" " 1234" "-1234" "-1234" NOTE: The double quotes are not part of the output. They are included in these examples to show the character placed at the left for positive values. The number of output bytes (ASCII characters) for each zoned decimal field is one byte more than the number of input bytes. LOOKING AT TAPE WITH THE KEYS and DITTO PROGRAMS: Use KEYS' R, CTRL-N, D, N and E commands to find and easily identify the various numeric types on any tape. See the KEYS and DITTO chapters. DITTO allows you to display records in HEX and as characters, preceded by a printout of byte position numbers. 69