Writes negative numeric values in parentheses
| 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 NEGPARENw.d format displays nonnegative numbers with blanks instead
of
parentheses for proper column alignment. That is, NEGPARENw.d reserves the last column for
a right parenthesis, even when the value is positive. If the field is wide
enough, NEGPARENw.d
places parentheses around a number to represent a negative value. Otherwise,
it uses a minus sign.
The
NEGPARENw.d
format is similar to the COMMAw.d format in that it separates every three digits of the value
with a comma.
put @1 sales negparen5.;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.