Reads quarters of the year
-
w
-
specifies the width of the input field.
The quarter must be in the form yyQq or
yyyyQq,
where
-
yy or yyyy
-
is an integer that represents the two- or
four-digit year.
-
q
-
is an integer (1, 2, 3, or 4) that represents
the quarter of the year. You can also represent the quarter as 01, 02, 03,
or 04.
The letter Q must separate the year value and the quarter
value. The year value, the letter Q, and the quarter value cannot be separated
by blanks. A value that is read with YYQw. produces
a SAS date value that corresponds to the first day of the specified quarter.
Note:
SAS interprets a two-digit year as belonging to the
100-year span that is defined by the YEARCUTOFF= system option.
input quarter yyq7.;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.