Chapter Contents

Previous

Next
YYMONw.

YYMONw.



Writes date values as the year and the month abbreviation

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

SAS Statement Results

----+----1
put date yymon6.;
 02MAR
put date yymon7.;
2002MAR


See Also

Format:

MMYYxw.


Chapter Contents

Previous

Next

Top of Page

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