Reads standard numeric data
| Numeric |
|
| Width range: |
1- 32
|
| Decimal range: |
0- 31, d < w.
|
| CMS specifics: |
minimum and maximum values
|
-
w
-
specifies the field width of the input value
in bytes or character digits.
-
d
-
specifies the number of digits to the right
of the decimal point in the input value.
Numbers are interpreted using the EBCDIC character-encoding
system, with one digit per byte. The w.d informat reads numeric
values located anywhere in the field. Blanks can precede or follow a numeric
value with no effect. A minus sign with no separating blanks must immediately
precede a negative value. Data can be stored with decimal points or in scientific
notation.
Include a d value in the w.d
informat when you want SAS to insert a decimal point. When you include a d value, values read without decimal points are divided by 10d. If the
value read already has a decimal point, the d is ignored.
The range of acceptable values that can be read with
the w.d informat can range from 5.398E-79 to 7.237E+75. The
following table illustrates the use of the w.d informat.
Note:
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.