WORDDATEw. Format

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

Syntax

WORDDATEw.

Syntax Description

w

specifies the width of the output field.

Default 18
Range 3–32

Details

The WORDDATEw. format writes SAS date values in the form month-name dd, yyyy:
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.

Comparisons

The WORDDATEw. format is the same as the WORDDATXw. format except that WORDDATXw. prints dd before the month's name.

Example

The example table uses the input value of 19158, which is the SAS date value that corresponds to June 14, 2012.
SAS Statement
Result
put term worddate3.; 
Jun
 
put term worddate9.;
----+----1----+----2
     June
put term worddate12.;
Jun 14, 2012
 
put term worddate20.; 
----+----1----+----2
       June 14, 2012

See Also