EURDFMYw. Informat

Reads month and year date values in the form mmmyy or mmmyyyy.
Category: Date and Time

Syntax

EURDFMYw.

Syntax Description

w
specifies the width of the input field.
Default:5 (except Finnish)
Range:5–32 (except Finnish)
Note:If you use the Finnish (FIN) language prefix, the w range is 7–32 and the default value for w is 7.

Details

The date values must be in the form mmmyy or mmmyyyy:
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.
You can place blanks and other special characters between day, month, and year values. A value that is read with EURDFMYw. 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 YEARCUTOFF= system option.
You can set the language for the SAS session with the DFLANG= system option. (Because the SAS Installation Representative usually sets a default language for the site, you might be able to skip this step.) If you work with dates in multiple languages, you can replace the EUR prefix with a language prefix. See DFLANG= System Option: UNIX, Windows, and z/OS for the list of language prefixes . When you specify the language prefix in the informat, SAS ignores the DFLANG= option.

Example

This INPUT statement uses the value of DFLANG= system option to read the international date values in French.
options dflang=french;
input month eurdfmy7.;
The second INPUT statement uses the French language prefix, and DFLANG is not specified.
input month fradfmy7.;
options dflang=french;
data _null_;
 input month eurdfmy7.;
  put month;
 datalines;
avr1999
avr 99
 ;
 options dflang=english;
data _null_;
 input month fradfmy7.;
  put month;
 datalines;
avr1999
avr 99
 ;
Values
Results
----+----1
avr1999
14335
avr 99
14335