Previous Page | Next Page

Functions for NLS

GETLOCENV Function



Returns the current locale/language environment.
Category: Locale

Syntax
Details
Examples

Syntax

GETLOCENV( )

Details

The GETLOCENV function returns the locale/language environment value for a valid SAS locale. The following environment values are possible:

SBCS

The SAS session encoding is SBCS (Single-Byte Character Set). SASWZSD is loaded for string manipulation.

DBCS

The SAS session encoding is DBCS (Double-Byte Character Set). SASWZSD is loaded for string manipulation.

MBCS

The SAS session encoding is Unicode(UTF8). SASWZSU is loaded for string manipulation.

If you receive a blank value, then the WZSS subsystem is not available. This action suggests a configuration or installation error.


Examples

In the following example, the LOCALE= system option is set to French_France.

Statements Results
option locale=french_france;

environ=getlocenv();

put environ;



SBCS

Previous Page | Next Page | Top of Page