Writes date values as the name of the day of the week.
Category: |
Date and Time
|
Alignment: |
right
|
-
w
-
specifies the width of the output field.
Default: |
9 |
Range: |
1-32 |
Tip: |
If you omit w, SAS prints the entire name of the
day. |
If necessary, SAS truncates the name of
the day to fit the format width. For example, the DOWNAME2. prints the first
two letters of the day name.
The example table uses the input value of 13589, which
is the SAS date value that corresponds to March 16, 1997.
SAS Statement |
Results |
|
----+----1
|
put date downame.;
|
Sunday
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.