Writes SAS 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 |
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. |
Statements
|
Results
|
---|---|
|
----+----1----+ |
select put(19537,yyqr6.); |
13QII |
select put(19537,yyqr7.); |
2013QII |
select put(19537,yyqr.); |
2013QII |
select put(19537,yyqr8.); |
2013QII |
select put(19537,yyqr10.); |
2013QII |