Writes native standard numeric data in IBM mainframe format.
-
w
-
specifies the width of the output field.
-
d
-
specifies the power of 10 by which to divide
the value. This argument is optional.
The S370FFw.d format writes numeric data in IBM mainframe format
(EBCDIC).
The EBCDIC numeric values are represented with one byte per digit. If EBCDIC
is the native format, S370FFw.d performs no conversion.
If a value is negative, an EBCDIC minus sign precedes
the value. A missing value is represented as a single EBCDIC period.
|
On an EBCDIC system, S370FFw.d behaves like the
w.d format. |
|
On all other systems, S370FFw.d
performs the same role for numeric data that the $EBCDICw. format does for character data. |
y=put(x,s370ff5.);
put y $hex10.;
Value of x |
Results* |
----+----1
|
|
12345
|
F1F2F3F4F5
|
*
The result is the hexadecimal representation for the
integer. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.