Previous Page
|
Next Page
DOWNAME
w
. Format
Writes date values as the name of the day of the week.
Category:
Date and Time
Alignment:
right
Syntax
Details
Example
See Also
Syntax
DOWNAME
w
.
Syntax Description
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.
Details
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.
Example
The example table uses the input value of 19137, which is the SAS date value that corresponds to May 24, 2012.
SAS Statement
Result
----+----1
put date downame.;
Thursday
See Also
Formats:
WEEKDAYw. Format
Copyright © SAS Institute Inc. All rights reserved.
Previous Page
|
Next Page
|
Top of Page