Writes date values in the form yymmm or yyyymmm.
Category: |
Date and Time
|
Alignment: |
right
|
-
w
-
specifies the width of the output field.
If the format width is too small to print a four-digit year, only the last
two digits of the year are printed.
The YYMONw.
format abbreviates the month's name to three characters.
The example table uses the input value of 16601, which
is the SAS date value that corresponds to June 14, 2005.
SAS Statement |
Results |
|
----+----1
|
put date yymon6.;
|
05JUN
|
put date yymon7.;
|
2005JUN
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.