Writes the date part of a datetime value as the year and the quarter
and separates them with a colon (:).
Category: |
Date and Time
|
Alignment: |
right
|
-
w
-
specifies the width of the output field.
The DTYYQCw.
format writes SAS datetime values in the form yy
or yyyy, followed by a colon (:) and the numeric
value for the quarter of the year.
The example table uses as input the value 1476598132,
which is the SAS datetime value that corresponds to October 16, 2006, at 06:08:52
p.m..
SAS Statement |
Results |
|
----+----1
|
put date dtyyqc.;
|
06:4
|
put date dtyyqc4.;
|
06:4
|
put date dtyyqc5.;
|
06:4
|
put date dtyyqc6.;
|
2006:4
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.