Writes date values as the name of the month, the day, and the
year in the form month-name dd, yyyy.
Category: |
Date and Time
|
Alignment: |
right
|
-
w
-
specifies the width of the output field.
The WORDDATEw.
format writes SAS date values in the form month-name dd, yyyy, where
-
dd
-
is an integer that represents the day of
the month.
-
yyyy
-
is a four-digit integer that represents
the year.
If the width is too small to write the complete month, SAS abbreviates
as necessary.
The WORDDATEw.
format is the same as the WORDDATXw. format except
that WORDDATXw. prints dd
before the month's name.
The example table uses the input value of 16601, which
is the SAS date value that corresponds to June 14, 2005.
SAS Statement |
Result |
|
----+----1----+----2
|
put term worddate3.;
|
Jun
|
put term worddate9.;
|
June
|
put term worddate12.;
|
Jun 14, 2005
|
put term worddate20.;
|
June 14, 2005
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.