Informats under z/OS |
Numeric | |
Width range: | 1-32 bytes |
Decimal range: | 0-32 |
z/OS specifics: | IBM zoned decimal format |
See: | ZDw.d Informat in SAS Language Reference: Dictionary |
Details | |
See Also |
Details |
Like numbers that are stored in standard format, zoned decimal digits are represented in EBCDIC code. Each digit requires one byte of storage space. The low-order, or rightmost, byte represents both the least significant digit and the sign of the number. Digits to the left of the least significant digit are represented in EBCDIC code as 'F0'x through 'F9'x. The character that is printed for the least significant digit depends on the sign of the number. In EBCDIC code, negative numbers are represented as 'D0'x through 'D9'x in the least significant digit position; positive numbers are represented as 'C0'x through 'C9'x. If the informat specification includes a d value, the number is divided by 10d.
The following examples illustrate the use of the ZDw.d informat:
Note: In these examples, Data Line (Hexadecimal) represents the bit pattern stored, which is the value you see if you view it in a text editor that displays values in hexadecimal representation. Value is the number that is used by SAS after the data pattern has been read using the corresponding informat. See EBCDIC Code: Commonly Used Characters for a table of commonly used EBCDIC characters.
See Also |
S370FZDw.d in SAS Language Reference: Dictionary
S370FZDLw.d in SAS Language Reference: Dictionary
S370FZDSw.d in SAS Language Reference: Dictionary
S370FZDTw.d in SAS Language Reference: Dictionary
S370FZDUw.d in SAS Language Reference: Dictionary
Format: ZDw.d Format: z/OS
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.