Chapter Contents |
Previous |
Next |
EURDFDTw.d |
Category: | Date and Time |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
EURDFDTw.d |
Default: | 16 |
Range: | 7-40 |
Tip: | If you want to write a SAS datetime value with the date, hour, and seconds, the width of w must be at least 16. Add an additional two places to the width if you want to return values with optional decimal fractions of seconds. |
Range: | 1-39 |
Restriction: | must be less than w |
Restriction: | If w - d < 17, SAS truncates the decimal values. |
Details |
The EURDFDTw. format writes SAS datetime values in the form ddmmmyy:hh:mm:ss.ss, where
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 DFLANG= for the list of language prefixes. When you specify the language prefix in the format, SAS ignores the DFLANG= option.
Examples |
The example table uses the input value of 1347453583, which is the SAS datetime value that corresponds to September 12, 2002, at 12:39:43 PM. 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 international datetime value in German. The third PUT statement uses the Italian language prefix in the format to write the international datetime value in Italian. The value of the DFLANG= option, therefore, is ignored.
SAS Statements | Results |
---|---|
----+----1----+----2 |
|
put date eurdfdt20.; |
12Sep2002:12:39:43 |
put date deudfdt20.; |
12Sep2002:12:39:43 |
put date itadfdt20.; |
12Set2002:12:39:43 |
See Also |
Formats:
| |||||||||
Function:
| |||||||||
Informats:
| |||||||||
System
Option:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.