DFLANG= System Option: UNIX, Windows, and z/OS

Specifies the language for international date informats and formats.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Environment control: Language control
PROC OPTIONS GROUP= LANGUAGECONTROL
Default: English

Syntax

DFLANG='language', locale

Syntax Description

'language'
specifies the language that is used for international date informats and formats.
These languages are valid values for language:
  • Afrikaans
  • Catalan
  • Croatian
  • Czech
  • Danish
  • Dutch
  • English
  • Finnish
  • French
  • German
  • Hungarian
  • Italian
  • Japanese
  • Macedonian
  • Norwegian
  • Polish
  • Portuguese
  • Russian
  • Slovenian
  • Spanish
  • Swedish
  • Swiss_French
  • Swiss_German
locale
the locale that is specified with the locale system option becomes the active locale.

Details

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