Chapter Contents

Previous

Next
w.d

w.d



Writes numeric data

Numeric
Width range: 1-32 bytes
Default width: 12
Decimal range: d<w
Alignment: right
OS/390 specifics: writes output as EBCDIC, minimum and maximum values


Details
See Also


Details

The w.d format writes numeric values one digit per byte using EBCDIC code. Because the values are stored in EBCDIC, they can be printed without further formatting.

Numbers written with the w.d format are rounded to the nearest number that can be represented in the output field. If the number is too large to fit, the BESTw.d format is used. Under OS/390, the range of the magnitude of numbers that can be written with the BESTw.d format is from 5.4 x 10-79 to 7.2 x 1075.

The following examples illustrate the use of the w.d format:

Value Format Results
1234 4.
1234
1234 5.
b1234
12345 4.
12E3
123.4 6.2
123.40
-1234 6.
b-1234

Note:   In these examples, the Value column represents the value of the data, and the Results column shows what the numeric value looks like when viewed from a text editor. The b characters in the Results column indicate blank spaces. See EBCDIC Code: Commonly Used Characters for a table of commonly used EBCDIC characters.  [cautionend]

See Also


Chapter Contents

Previous

Next

Top of Page

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