Chapter Contents |
Previous |
Next |
RBw.d |
Category: | Numeric |
Alignment: | left |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
RBw.d |
Default: | 4 |
Range: | 2-8 |
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 kind of operating environment
that you use to run SAS.
Comparisons |
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.;
Values | Results* |
---|---|
----+---1----+----2 |
|
128 |
4280000000000000 |
*The result is a hexadecimal representation of an eight-byte real binary number as it looks on an IBM mainframe. Each byte occupies one column of the output field. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.