Previous Page | Next Page

Formats

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
Syntax Description
Details
Comparisons
Examples
See Also

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, 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.


Comparisons

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


Examples

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


See Also

Format:

WORDDATXw. Format

Previous Page | Next Page | Top of Page