Chapter Contents

Previous

Next
MONYYw.

MONYYw.



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

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Examples
See Also

Syntax

MONYYw.

Syntax Description

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- or four-digit integer that represents the year.


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 monyy5.; 
MAR02
put date monyy7.; 
MAR2002


See Also

Formats:

DDMMYYw.
MMDDYYw.
YYMMDDw.

Functions:

MONTH
YEAR

Informat:

MONYYw.


Chapter Contents

Previous

Next

Top of Page

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