You can change the value
of the DFLANG system option during a SAS session, but you can use
only one language at a time. The values for
language are not case-sensitive.
When you specify
dflang=locale
, the locale that is specified in the system
option, of the locale statement becomes the active locale. The locale/language
must be supported by the DFLANG system option.
In the following example,
the international date informats and formats would be German. The
posix name for German locale is de_DE. The German locale is supported
by the DFLANG system option.
option locale=de_DE; /* German locale */
option DFLANG=locale;
In the following example,
the international date informats and formats would be English. Maltese
is not supported by dflang, so the default locale is English.
option locale=mt_MT; /* Maltese locale */
option DFLANG=locale;
When you specify
dflang=locale
, the output of the date format is displayed
in the locale that is specified with the LOCALE system option. To
control the date format in the output, the DFLANG locale uses the
value based on the LOCALE system option that has been set at startup.
If DFLANG is set to a valid language, then the date format in the
output is English by default. In the following example, the locale
is set to French and a listing output is specified:
Sas.exe –locale French
Proc print data=sashelp.class ; run ;
mercredi 09 mars 2011 14 h 25