YYQZw. Format

Writes SAS date values in the form [yy] yyqq. The year appears as 2 or 4 digits, and qq is the quarter of the year.

Category: Date and Time
Alignment: Right

Syntax

YYQZw.

Arguments

Z

specifies that no separator appear between the year and the quarter.

w

specifies the width of the output field.

Default 4
Note 6

Details

The YYQZw. format writes SAS date values in the form [yy]yyqq where
[yy]yy
is a two-digit or four-digit integer that represents the year.
Z
specifies that there is no separator.
qq
is an integer (01, 02, 03, or 04) that represents the quarter of the year.

Example

The following examples use the input value of 19537, which is the SAS date value that corresponds to June 28, 2013.
Statements
Results
 
----+----1----+
select put (19537,yyqz6.);
201302
select put (19537,yyqz4.);
 1302