MONNAMEw. Format

Writes SAS date values as the name of the month.

Category: Date and Time
Alignment: Right

Syntax

MONNAMEw.

Arguments

w

specifies the width of the output field.

Default 9
Range 1–32
Tip Use MONNAME3. to print the first three letters of the month name.

Details

If necessary, SAS truncates the name of the month to fit the format width.

Example

The example table uses the input value of 19431, which is the SAS date value that corresponds to March 14, 2014.
Statements
Results
 
----+----1
select put(19431,monname1.); 
M
select put(19431,monname3.);
Mar
select put(19431,monname5.); 
March

See Also

Formats:
Last updated: February 23, 2017