Reads month and year date values in the form mmmyy
or mmmyyyy
-
w
-
specifies the width of the input field.
Note:
If you use the Finnish (FIN) language prefix,
the w range is 7-32 and the default value
for w is 7. ![[cautend]](../common/images/cautend.gif)
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.
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 may 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=
for the list of language prefixes. When you specify the language prefix in the informat,
SAS ignores the DFLANG= option.
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.;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.