| Formats |
| Category: | Date and Time |
| Alignment: | right |
| Syntax | |
| Syntax Description | |
| Details | |
| Examples | |
| See Also |
Syntax |
| YYQxw. |
identifies a separator or specifies that no separator appear between the year and the quarter. Valid values for x are:
specifies the width of the output field.
| Details |
The YYQxw. format writes SAS date values in the form <yy>yyq or <yy>yyxq, where
is a two-digit or four-digit integer that represents the year.
is an integer (1,2,3, or 4) that represents the quarter of the year.
| Examples |
The following examples use the input value of 18031, which is the SAS date value that corresponds to July 14, 2005.
| SAS Statement | Results |
|---|---|
|
|
----+----1----+ |
put date yyqc4.; |
09:2 |
put date yyqd.; |
2009-2 |
put date yyqn3.; |
092 |
put date yyqp6.; |
2009.2 |
put date yyqs8.; |
2009/2 |
| See Also |
|
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.