EURDFWDXw. Format

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

Syntax

EURDFWDXw.

Syntax Description

w
specifies the width of the output field.
The default depends on the language prefix that you use. The following table shows the default value for each language:
Language
Maximum
Default
Afrikaans (AFR)
37
29
Catalan (CAT)
40
16
Croatian (CRO)
40
16
Czech (CSY)
40
16
Danish (DAN)
18
18
Dutch (NLD)
37
29
Finnish (FIN)
20
20
French (FRA)
18
18
German (DEU)
18
18
Hungarian (HUN)
40
18
Italian (ITA)
17
17
Macedonian (MAC)
40
17
Norwegian (NOR)
17
17
Polish (POL)
40
20
Portuguese (PTG)
37
23
Russian (RUS)
40
16
Slovenian (SLO)
40
17
Spanish (ESP)
24
24
Swedish (SVE)
17
17
Swiss-French (FRS)
17
17
Swiss-German (DES)
18
18
Default:depends on the language prefix you use.
Range:3–(maximum width)
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 EURDFWDXw. format writes SAS date values in the form dd month-name yy or dd month-name yyyy:
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: 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 will not work correctly using non-European encodings. When running in a DBCS environment, the default format width and max width will be 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.

Comparisons

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

Example

The example table uses the input value 15342, which is the SAS date value that corresponds to January 2, 2002. The first PUT statement assumes that the DFLANG= system option is set to Dutch.
options dflang=dutch;
The second PUT statement uses the Dutch language prefix in the format to write the name of the month in Dutch. 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.
    options dflang=dutch;
    data _null_;
    input date;
    put date eurdfwdx29.;
    put date nlddfwdx29.
    put date itadfwdx17.;
    datalines;
    15342
    ;
Statements
Results
----+----1----+----2----+----3
put day eurdfwdx29.;
               2 januari 2002
put day nlddfwdx29.;
               2 januari 2002
put day itadfwdx17.;
  02 Gennaio 1998