Returns a SAS date value from year and quarter year values.
| Category: | Date and Time |
| Returned data type: | DOUBLE |
specifies any valid expression that evaluates to a two-digit or four-digit integer that represents the year.
| Interaction | The YEARCUTOFF= system option defines the year value for two-digit dates. |
| Data type | DOUBLE |
| See | <sql-expression> |
| FedSQL Expressions |
specifies the quarter of the year (1, 2, 3, or 4).
| Data type | DOUBLE |
| See | <sql-expression> |
| FedSQL Expressions |
|
Statements
|
Results
|
|---|---|
select yyq(2006,3); select put(yyq(2006,3), date7.); select put(yyq(2006,3), date9.); |
16983 01JUL06 01JUL2006 |
select yyq(2006,4); select put(yyq(2006,4), date9.); |
17075 01OCT2006 |