Previous Page | Next Page

Additional NLS Language Elements

EURDFWKXw. Format



Writes international date values as the name of the day and date in the form day-of-week, dd month-name yy (or yyyy).
Category: Date and Time
Alignment: right

Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

EURDFWKXw.


Syntax Description

w

specifies the width of the output field.

Default: depends on the language prefix you use. The following table shows the default value for each language:
Language Minimum Maximum Default
Afrikaans (AFR) 2 38 28
Catalan (CAT) 2 40 27
Croatian (CRO) 3 40 27
Czech (CSY) 2 40 25
Danish (DAN) 2 31 31
Dutch (NLD) 2 38 28
Finnish (FIN) 2 37 37
French (FRA) 3 27 27
German (DEU) 3 30 30
Hungarian (HUN) 3 40 28
Italian (ITA) 3 28 28
Macedonian (MAC) 3 40 29
Norwegian (NOR) 3 26 26
Polish (POL) 2 40 34
Portuguese (PTG) 3 38 38
Russian (RUS) 2 40 29
Slovenian (SLO) 3 40 29
Spanish (ESP) 1 35 35
Swedish (SVE) 3 26 26
Swiss-French (FRS) 3 26 26
Swiss-German (DES) 3 30 30

Tip: If the value for w is too small to include the complete day of the week and the month, SAS abbreviates as necessary.

Details

The EURDFWKXw. format writes SAS date values in the form day-of-week, dd month-name yy ( or yyyy):

day-of-week

is the name of day.

dd

is an integer that represents the day of the month.

month-name

is the name of the month.

yy or yyyy

is a two-digit or four-digit integer that represents the year.

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 format, SAS ignores the DFLANG= option.

Note:   The EUR-date formats require European character sets and encodings. Some formats do not work correctly using non-European encodings. When running in a DBCS environment, the default format width and max width are larger than in the single byte system to allow formats to use a double byte representation of certain characters. However, you must use a session encoding that supports the European characters set like UTF-8.  [cautionend]


Comparisons

The EURDFWKXw. format is the same as the EURDFWDXw. format except that EURDFWKXw. format adds day-of-week in front of dd.


Examples

The example table uses the input value 15344, which is the SAS date value that corresponds to January 4, 2002. The first PUT statement assumes that the DFLANG= system option is set to German.

options dflang=German;

The second PUT statement uses the German language prefix in the format to write the name of the month in German. The third PUT statement uses the Italian language prefix in the format to write the name of the month in Italian. Therefore, the value of the DFLANG= option is ignored.

Statements Results

----+----1----+----2----+----3
put date eurdfwkx30.;
       Freitag, 4. Januar 2002
put date deudfwkx30.;
       Freitag, 4. Januar 2002
put date itadfwkx17.;
 Ven, 04 Gen 2002


See Also

Formats:

DATEw. in SAS Language Reference: Dictionary

DDMMYYw. in SAS Language Reference: Dictionary

MMDDYYw. in SAS Language Reference: Dictionary

TODw. in SAS Language Reference: Dictionary

WEEKDATXw. in SAS Language Reference: Dictionary

YYMMDDw. in SAS Language Reference: Dictionary

Functions:

JULDATE in SAS Language Reference: Dictionary

MDY in SAS Language Reference: Dictionary

WEEKDAY in SAS Language Reference: Dictionary

Informats:

DATEw. in SAS Language Reference: Dictionary

DDMMYYw. in SAS Language Reference: Dictionary

MMDDYYw. in SAS Language Reference: Dictionary

YYMMDDw. in SAS Language Reference: Dictionary

System Options:

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

Previous Page | Next Page | Top of Page