MONYYw. Format

Writes SAS date values as the month and the year in the form mmmyy or mmmyyyy.

Category: Date and Time
Alignment: Right

Syntax

MONYYw.

Arguments

w

specifies the width of the output field.

Default 5
Range 5–7

Details

The MONYYw. format writes SAS date values in the form mmmyy or mmmyyyy, where
mmm
is the first three letters of the month name.
yy or yyyy
is a two-digit or four-digit integer that represents the year.

Comparisons

The MONYYw. format and the DTMONYYw. format are similar in that they both write date values. The difference is that MONYYw. expects a SAS date value as input, and DTMONYYw. expects a datetime value.

Example

The example table uses the input value of 19704, which is the SAS date value that corresponds to December 12, 2013.
Statements
Results
 
----+----1
select put(19704,monyy5.); 
DEC13
select put(19704,monyy7.); 
DEC2013