Writes standard numeric data with leading 0s
| Category: |
Numeric
|
| Alignment: |
right
|
-
w
-
specifies the width of the output field.
-
d
-
optionally specifies the number of digits
to the right of the decimal point in the numeric value.
The
Zw.d
format writes standard numeric values one digit per byte and fills in 0s to
the left of the data value.
The Zw.d format rounds to the nearest number that will fit in the output
field. If w.d is
too large to fit, SAS may shift the decimal to the BESTw.
format. The Zw.d
format writes negative numbers with leading minus signs. In addition, it right
aligns before writing and pads the output with leading zeros.
The Zw.d format is similar to the w.d
format except that Zw.d
pads right-aligned output with 0s instead of blanks.
put @5 seqnum z8.;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.