Previous Page | Next Page

Formats under z/OS

w.d Format: z/OS



Writes numeric data.
Numeric
Width range: 1-32 bytes
Default width: 12
Decimal range: d<w
Alignment: right
z/OS specifics: writes output as EBCDIC, minimum and maximum values
See: w.d Format in SAS Language Reference: Dictionary

Details

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 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]

Previous Page | Next Page | Top of Page