Additional NLS Language Elements |
Category: | Date and Time |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
EURDFDDw. |
specifies the width of the output field.
Default: | 8 (except Finnish, which is 10) |
Range: | 2-10 |
Tip: | When w is from 2 to 5, SAS prints as much of the month and day as possible. When w is 7, the date appears as a two-digit year without slashes, and the value is right-aligned in the output field. |
Details |
The EURDFDDw. format writes SAS date values in the form dd.mm.yy or dd.mm.yyyy, where
is the two-digit integer that represents the day of the month.
is the two-digit integer that represents the month.
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= system option.
Examples |
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. The third PUT statement uses the French language prefix in the format to write the international date value. Therefore, the value of the DFLANG= option is ignored.
Statement | Result |
---|---|
|
----+----1 |
put date eurdfdd8.; |
02.01.02 |
put date espdfdd8.; |
02.01.02 |
put date fradfdd8.; |
02/01/02 |
See Also |
Formats:
| |||||||||
Functions:
| |||||||||
Informats:
| |||||||||
System Options: |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.