Chapter Contents |
Previous |
Next |
YYQw. |
Category: | Date and Time |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
YYQw. |
Default: | 4 |
Range: | 4-32 |
Details |
The quarter must be in the form yyQq or yyyyQq, where
The letter Q must separate the year value and the quarter value. The year value, the letter Q, and the quarter value cannot be separated by blanks. A value that is read with YYQw. produces a SAS date value that corresponds to the first day of the specified quarter.
Note: SAS interprets a two-digit year as belonging to the
100-year span that is defined by the YEARCUTOFF= system option.
Examples |
input quarter yyq9.;
Data Lines | Results |
---|---|
----+----1----+ |
|
02Q2 |
15431 |
02Q02 |
15431 |
2002Q02 |
15431 |
See Also |
Functions:
| |||||||
System
Option:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.