Chapter Contents |
Previous |
Next |
DATEw. |
Category: | Date and Time |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
DATEw. |
Default: | 7 |
Range: | 5-9 |
Tip: | Use a width of 9 to print a 4-digit year. |
Details |
The DATEw. format writes SAS date values in the form ddmmmyy or ddmmmyyyy, where
Examples |
The example table uses the input value of 15415, which is the SAS date value that corresponds to March 16, 2002.
SAS Statements | Results |
---|---|
----+----1----+ |
|
put day date5.; |
16MAR |
put day date6.; |
16MAR |
put day date7.; |
16MAR02 |
put day date8.; |
16MAR02 |
put day date9.; |
16MAR2002 |
See Also |
Function:
| |||
Informat:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.