Chapter Contents

Previous

Next
WORDDATEw.

WORDDATEw.



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 15415, which is the SAS date value that corresponds to March 16, 2002.

SAS Statements Results

----+----1----+----2
put term worddate3.; 
Mar
put term worddate9.;
    March
put term worddate12.;
Mar 16, 2002
put term worddate20.; 
      March 16, 2002


See Also

Format:

WORDDATXw.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.