Writes date values in the form <yy>yyQqr, where Q is the
separator, the year appears as either 2 or 4 digits,
and qr is the quarter of the year expressed in roman numerals.
Category: |
Date and Time
|
Alignment: |
right
|
-
w
-
specifies
the width of the output field.
Default: |
8 |
Range: |
6-32 |
Interaction: |
When the value of w is too small to write a four-digit year, the date appears
with only the last two digits of the year. |
The YYQRw.
format writes SAS date values in the form <yy>yyQqr,
where
-
<yy>yy
-
is a two-digit or four-digit integer that
represents the year.
-
Q
-
is the character separator.
-
qr
-
is a roman numeral (I, II, III,
or IV) that represents the quarter of the year.
The following examples use the input value of 16601,
which is the SAS date value that corresponds to June 14, 2005.
SAS Statement |
Result |
|
----+----1----+
|
put date yyqr6.;
|
05QII
|
put date yyqr7.;
|
2005QII
|
put date yyqr.;
|
2005QII
|
put date yyqr8.;
|
2005QII
|
put date yyqr10.;
|
2005QII
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.