w.d Format: z/OS

Writes numeric data.
Category: Numeric
Alignment: right
Default: 12
Ranges: 1-32 bytes, d<w
z/OS specifics: Writes output as EBCDIC, minimum and maximum values
See: w.d Format in SAS Formats and Informats: Reference

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 z/OS, 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 table contains examples that 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. For a table of commonly used EBCDIC characters, see EBCDIC Code: Commonly Used Characters.