Reads zoned decimal leading-sign data in IBM mainframe format.
Category: | Numeric |
Interaction: | List input is incompatible with binary input when this informat is specified in an INFORMAT= statement or an ATTRIB= statement using the INFORMAT= argument. SAS issues a warning and uses formatted input to read the data. |
input @1 x s370fzdl3.;
Data Line 1
|
Result
|
---|---|
----+----1 |
|
C1F2F3 |
123 |
D1F2F3 |
-123 |
1The data lines contain a hexadecimal representation of a binary number stored in zoned decimal format on an IBM mainframe operating environment. Each two hexadecimal characters correspond to one byte of binary data, and each byte corresponds to one column of the input field. |