Chapter Contents

Previous

Next
MONYYw.

MONYYw.


Reads month and year date values in the form mmmyy or mmmyyyy

Category: Date and time


Syntax
Syntax Description
Details
Examples
See Also

Syntax

MONYYw.

Syntax Description

w
specifies the width of the input field.
Default: 5
Range: 5-32


Details

The date values must be 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.

A value read with the MONYYw. informat results in a SAS date value that corresponds to the first day of the specified month.

Note:    SAS interprets a two-digit year as belonging to the 100-year span that is defined by the YEARCUTOF= system option.  [cautend]


Examples


input month_and_year monyy7.;

Data Lines Results

----+----1----+


mar 97

13574

mar1997

13574


See Also

Formats:

DDMMYYw.
MMDDYYw.
MONYYw.
YYMMDDw.

Functions:

MONTH
YEAR

Informats:

DDMMYYw.
MMDDYYw.
YYMMDDw.

System Option:

YEARCUTOFF=


Chapter Contents

Previous

Next

Top of Page

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