Previous Page | Next Page

Functions for NLS

GETPXREGION Function



Returns the current two-letter region code.
Category: Locale

Syntax
Details
Examples
See Also

Syntax

GETPXREGION()


Details

The GETPXREGION function returns the two-letter region code based on the current LOCALE= SAS system option. The length of the region name is two characters. If the size of the variable that receives the value is less than two characters, the value is truncated.


Examples

In the first example the LOCALE= system option is set to French_France. The second example is set to German. The third example is set to English_United States.

Statements Results
option locale=french_france;

region=getpxRegion();

put region;

FR
option locale=German;

region=getpxRegion();

put region;

DE
option locale=en_US;

region=getpxRegion();

put region;

US


See Also

System Options:

LOCALE System Option

Functions:

GETPXLOCALE Function

GETPXLANGUAGE Function

Previous Page | Next Page | Top of Page