Previous Page | Next Page

Formats

S370FFw.d Format



Writes native standard numeric data in IBM mainframe format.
Category: Numeric

Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

S370FFw.d

Syntax Description

w

specifies the width of the output field.

Default: 12
Range: 1-32
d

specifies the power of 10 by which to divide the value. This argument is optional.

Range: 0-31

Details

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.


Comparisons

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.


Examples

y=put(x,s370ff5.); 
put y $hex10.;

Value of x Results*
----+----1

12345
F1F2F3F4F5
* The result is the hexadecimal representation for the integer.


See Also

Formats:

$EBCDICw. Format

w.d Format

Previous Page | Next Page | Top of Page