EURDFDWNw. Format

Writes international date values as the name of the day.
Category: Date and Time
Alignment: right

Syntax

EURDFDWNw.

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
Default
Afrikaans (AFR)
9
Catalan (CAT)
9
Croatian (CRO)
10
Czech (CSY)
7
Danish (DAN)
7
Dutch (NLD)
9
Finnish (FIN)
11
French (FRA)
8
German (DEU)
10
Hungarian (HUN)
9
Italian (ITA)
9
Macedonian (MAC)
10
Norwegian (NOR)
7
Polish (POL)
12
Portuguese (PTG)
13
Russian (RUS)
11
Slovenian (SLO)
10
Spanish (ESP)
9
Swedish (SVE)
7
Swiss-French (FRS)
8
Swiss-German (DES)
10
Default:depends on the language prefix you use.
Range:1–32
Tip:If you omit w, SAS prints the entire name of the day.

Details

If necessary, SAS truncates the name of the day to fit the format width. The EURDFDWNw. format writes SAS date values in the form day-name:
day-name
is the name of the day.
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 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.

Example

The following 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 French.
options dflang=french;
put day eurdfdwn8.;
The second PUT statement uses the French language prefix in the format to write the day of the week in French. The third PUT statement uses the Spanish language prefix in the format to write the day of the week in Spanish. Therefore, the value of the DFLANG= option is ignored.
    options dflang=french;
    data _null_;
    input day;
    put day eurdfdwn8.;
    put day fradfdwn8.;
    put day espdfdwn8.;
    datalines;
    15344
    ;
    run;
Statements
Results
----+----1
put day eurdfdwn8.; 
 Vendredi
put day fradfdwn8.; 
 Vendredi
put day espdfdwn8.; 
 viernes