EURDFDNw. Format

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

Syntax

EURDFDNw.

Syntax Description

w
specifies the width of the output field.
Default:1
Range:1–32

Details

The EURDFDNw. format writes SAS date values in the form day-of-the-week:
day-of-the-week
is represented as 1=Monday, 2=Tuesday, and so on.
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 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 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 Spanish.
options dflang=spanish;
The second PUT statement uses the Spanish language prefix in the format to write the day of the week in Spanish. The third PUT statement uses the Italian language prefix in the format to write the day of the week in Italian. Therefore, the value of the DFLANG= option is ignored.
options dflang=spanish;
data _null_;
  input day;
  put day eurdfdn.;
  put day espdfdn.; 
  put day itadfdn.;
  datalines;
  15342
  ;
Statements
Results
----+----1
put day eurdfdn.; 
3
put day espdfdn.; 
3
put day itadfdn.; 
3