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
|
- w
- specifies the width of the output field.
Default: |
depends on the language
prefix you use. The following table shows the default 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 w
is too small to write the complete day of the week and the month, SAS abbreviates
as necessary. |
The EURDFWKXw. format writes SAS date values in the form day-of-week,
dd month-name yy ( or yyyy) where
- 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- 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 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
for the list of language prefixes. When you specify the language prefix in
the format, SAS ignores the DFLANG= option.
The EURDFWKXw. format is the same as the EURDFWDXw.
format except that EURDFWKXw. prints dd after the month's name.
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 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. The value of the DFLANG= option, therefore, is ignored.
Values |
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
|
| Formats:
|
| Functions:
|
| Informats:
|
| System
Option:
|
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.