Formats |
Category: | Numeric |
Alignment: | left |
See: | RBw.d Format under Windows UNIX OpenVMS z/OS |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
RBw.d |
specifies the width of the output field.
Default: | 4 |
Range: | 2-8 |
specifies to multiply the number by 10d. This argument is optional.
Default: | 0 |
Range: | 0-10 |
Details |
The RBw.d format writes numeric data in the same way that SAS stores them. Because it requires no data conversion, RBw.d is the most efficient method for writing data with SAS.
Note: Different operating environments store real binary values in different ways. However, RBw.d writes real binary values with consistent results in the same type of operating environment that you use to run SAS.
Comparisons |
The following table compares the names of real binary notation in several programming languages:
Language | 4 Bytes | 8 Bytes |
---|---|---|
SAS | RB4. | RB8. |
Fortran | REAL*4 | REAL*8 |
C | float | double |
COBOL | COMP-1 | COMP-2 |
IBM 370 assembler | E | D |
Examples |
y=put(x,rb8.); put y $hex16.;
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.