GETPXREGION Function

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

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.

Example

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