Chapter Contents

Previous

Next
DOWNAMEw.

DOWNAMEw.



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 Statements Results

----+----1
put date downame.; 
Sunday


See Also

Format:

WEEKDAYw.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.