Previous Page | Next Page

Formats

YYMONw. Format



Writes date values in the form yymmm or yyyymmm.
Category: Date and Time
Alignment: right

Syntax
Syntax Description
Details
Examples
See Also

Syntax

YYMONw.

Syntax Description

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.

Default: 7
Range: 5-32

Details

The YYMONw. format abbreviates the month's name to three characters.


Examples

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


See Also

Format:

MMYYw. Format

Previous Page | Next Page | Top of Page