Chapter Contents

Previous

Next
S370FFw.d

S370FFw.d



Reads EBCDIC numeric data

Category: Numeric


Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

S370FFw.d

Syntax Description

w
specifies the width of the input field.
Default: 12
Range: 1-32

d
optionally specifies the power of 10 by which to divide the value.
Range: 0-31


Details

The S370FFw.d informat reads numeric data that are represented in EBCDIC and converts the data to native format. If EBCDIC is the native format, S370FFw.d performs no conversion.

S370FFw.d reads EBCDIC numeric values that are represented with one byte per digit. Use S370FFw.d on other operating environments to read numeric data from IBM mainframe files.

S370FFw.d reads numeric values located anywhere in the input field. EBCDIC blanks can precede or follow a numeric value with no effect. If a value is negative, an EBCDIC minus sign should immediately precede the value. S370FFw.d reads values with EBCDIC decimal points and values in scientific notation, and it interprets a single EBCDIC period as a missing value.


Comparisons

The S370FFw.d informat performs the same role for numeric data that the $EBCDICw.d informat does for character data. That is, on an IBM mainframe system, S370FFw.d has the same effect as the standard w.d informat. On all other systems, using S370FFw.d is equivalent to using $EBCDICw.d as well as using the standard w.d informat.


Examples

input @1 x s370ff3.; 

Data Lines* Results
----+----1

F1F2F3
123
F2F4F0
240
*The data lines are hexadecimal representations of codes for characters. Each two hexadecimal digits correspond to one byte of binary data, and each byte corresponds to one character value.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.