Formats |
Category: | Date and Time |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
YYQRxw. |
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 YYQRxw. format writes SAS date values in the form <yy>yyqr or <yy>yyxqr, where
is a two-digit or four-digit integer that represents the year.
is a roman numeral (I, II, III, or IV) 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 May 14, 2009.
SAS Statement | Result |
---|---|
|
----+----1----+ |
put date yyqrc6.; |
09:II |
put date yyqrd.; |
2009-II |
put date yyqrn5.; |
09II |
put date yyqrp8.; |
2009.II |
put date yyqrs10.; |
2009/II |
See Also |
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.