Chapter Contents

Previous

Next
MONNAMEw.

MONNAMEw.



Writes date values as the name of the month

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Examples
See Also

Syntax

MONNAMEw.

Syntax Description

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.


Examples

The example table uses the input value of 15415, which is the SAS date value that corresponds to March 16, 2002.

SAS Statements Results

----+----1
put date monname1.; 
M
put date monname3.; 
Mar
put date monname5.; 
March


See Also

Format:

MONTHw.


Chapter Contents

Previous

Next

Top of Page

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