Previous Page | Next Page

Informats

MONYYw. Informat



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-digit 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.  [cautionend]


Examples

input month_and_year monyy7.;

Data Line Results
----+----1----+

mar 99
14304
mar1999
14304


See Also

Formats:

DDMMYYw. Format

MMDDYYw. Format

MONYYw. Format

YYMMDDw. Format

Functions:

MONTH Function

YEAR Function

Informats:

DDMMYYw. Informat

MMDDYYw. Informat

YYMMDDw. Informat

System Option:

YEARCUTOFF= System Option

Previous Page | Next Page | Top of Page