Previous Page | Next Page

Additional NLS Language Elements

EURDFDEw. Informat



Reads international date values.
Category: Date and Time

Syntax
Details
Examples
See Also

Syntax

EURDFDEw.

w

specifies the width of the input field.

Default: 7 (except Finnish)
Range: 7-32 (except Finnish)

Note:   If you use the Finnish (FIN) language prefix, the w range is 10-32 and the default w is 10.  [cautionend]


Details

The date values must be in the form ddmmmyy or ddmmmyyyy:

dd

is an integer from 01-31 that represents the day of the month.

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.

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

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: OpenVMS, UNIX, Windows, and z/OS for the list of language prefixes . When you specify the language prefix in the informat, SAS ignores the DFLANG= system option.


Examples

This INPUT statement uses the value of the DFLANG= system option to read the international date values in Spanish.

options dflang=spanish;
input day eurdfde10.; 

This INPUT statement uses the Spanish language prefix in the informat to read the international date values in Spanish. The value of the DFLANG= option, therefore, is ignored.

input day espdfde10.;

Values Results

----+----1
01abr1999
14335
01-abr-99
14335


See Also

Formats:

EURDFDEw. Format

Informats:

DATEw. in SAS Language Reference: Dictionary

EURDFDTw. Informat

EURDFMYw. Informat

System Options:

DFLANG= System Option: OpenVMS, UNIX, Windows, and z/OS

YEARCUTOFF= in SAS Language Reference: Dictionary

Previous Page | Next Page | Top of Page