YYMONw. Format

Writes SAS date values in the form yymmm or yyyymmm.

Category: Date and Time
Alignment: Right

Syntax

YYMONw.

Arguments

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.

Example

The example table uses the input value of 19537, which is the SAS date value that corresponds to June 28,2013.
Statements
Results
 
----+----1
select put(19537,yymon6.);
 13JUN
select put(19537,yymon7.);
2013JUN

See Also