Additional NLS Language Elements |
Writes international date values in the form ddmmmyy
or ddmmmyyyy.
Category: |
Date and Time
|
Alignment: |
right
|
-
w
-
specifies the width of the output field.
Default: |
7 (except Finnish) |
Range: |
5-9 (except Finnish) |
Note: If you use the Finnish
(FIN) language prefix, the w range is 9-10
and the default is 9. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
The EURDFDEw.
format writes SAS date values in the form ddmmmyy
or ddmmmyyyy:
-
dd
-
is an integer that represents the day of
the month.
-
mmm
-
is the first three letters of the month
name.
-
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, such as UTF-8. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
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 international date value in Spanish. The third PUT statement
uses the French language prefix in the format to write the international date
value in French. Therefore, the value of the DFLANG= option is ignored.
Statements |
Results |
|
----+----1
|
put date eurdfde9.;
|
02ene2002
|
put date espdfde9.;
|
02ene2002
|
put date fradfde9.;
|
02jan2002
|
|
Formats:
|
DATEw. in
SAS Language Reference: Dictionary | |
|
Functions:
|
DATE in
SAS Language Reference: Dictionary | |
|
Informats:
|
|
System Options:
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.