YYQw. Format
Writes date values in the form <yy>yyQq,
where Q is the separator, the year appears as either 2 or 4 digits,
and q is the quarter of the
year.
Category: |
Date and Time |
Alignment: |
Right |
Syntax
Syntax Description
w
specifies the width
of the output field.
Default |
6 |
Range |
4–32 |
Interaction |
When w has
a value of 4 or 5, the date appears with only the last two digits
of the year. When w is 6 or
more, the date appears with a four-digit year.
|
Details
The YYQw.
format writes SAS date values in the form <yy>yyQq:
<yy>yy
is a two-digit or four-digit
integer that represents the year.
Q
is the character separator.
q
is an integer (1,2,3,
or 4) that represents the quarter of the year.
Example
The following examples
use the input value of 19158, which is the SAS date value that corresponds
to June 14, 2012.