DQLOCALEGUESS Function

Returns the name of the locale that is most likely represented by a character value.
Valid in: DATA step, PROC SQL, and SCL

Syntax

DQLOCALEGUESS (char, 'locale-guess-definition')

Required Arguments

char
specifies a character constant, variable, or expression that contains the value that is analyzed to determine the locale, according to the specified guess definition.
locale-guess-definition
specifies a character constant, variable, or expression that contains the locale-guess-definition.

Details

The DQLOCALEGUESS function evaluates the input character value using the specified locale guess definition in each of the locales that are loaded into memory. An applicability score is generated for each locale in the locale list. If multiple locales hold the highest score definition, or none of the locales have the guess definition, the return value is the first locale in the locale list. The name of the locale that is returned depends on which locales are loaded into memory.

Example: DQLOCALEGUESS Function

The following example returns the name of a locale as the value of LOC.
loc=dqLocaleGuess('101 N. Main Street', 'Address');