Previous Page | Next Page

Formats

DOWNAMEw. Format



Writes date values as the name of the day of the week.
Category: Date and Time
Alignment: right

Syntax
Syntax Description
Details
Examples
See Also

Syntax

DOWNAMEw.

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.


Examples

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


See Also

Format:

WEEKDAYw. Format

Previous Page | Next Page | Top of Page