![]() Chapter Contents |
![]() Previous |
![]() Next |
| YEARw. |
| Category: | Date and Time |
| Alignment: | right |
| Syntax | |
| Syntax Description | |
| Examples |
Syntax |
| YEARw. |
| Default: | 4 |
| Range: | 2-32 |
| Tip: | If w is less than 4, the last two digits of the year print; otherwise, the year value prints as four digits. |
| 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 date year2.; |
02 |
put date year4.; |
2002 |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.