RBw.d Format: z/OS

Writes values in real binary (floating-point) format.
Category: Numeric
Alignment: left
Default: 4
Ranges: 2-8 bytes, 0-10
z/OS specifics: IBM floating-point format
See: RBw.d Format in SAS Formats and Informats: Reference

Details

The format of floating-point numbers is host-specific. See SAS Language Reference: Concepts for a description of the format that is used to store floating-point numbers under z/OS.
If the format includes a d value, the number is multiplied by 10d.
The following table contains examples that illustrate how decimal numbers are written as floating-point numbers using the RBw.d format:
Value
Format
Results (Hexadecimal)
Notes
123
rb8.1
434CE00000000000
a d value of 1 causes the number to be multiplied by 101
123
rb8.2
44300C0000000000
a d value of 2 causes the number to be multiplied by 102
-123
rb8.
C27B000000000000
1234
rb8.
434D200000000000
1234
rb2.
434D
truncation occurred
12.25
rb8.
41C4000000000000
Note: In these examples, the Value column represents the value of the data, and the Results column shows a hexadecimal representation of the bit pattern written by the corresponding format. (You cannot view this data in a text editor, unless you can view it in hexadecimal representation.)

See Also

Formats
S370FRBw.d Format in SAS Formats and Informats: Reference