Previous Page | Next Page

Functions and CALL Routines

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
Arguments
Details
Example
See Also

Syntax

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

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

The following example returns the name of a locale as the value of LOC.

loc=dqLocaleGuess('101 N. Main Street', 'Address');


See Also

Function:

DQLOCALEINFOGET Function

Load and Unload Locales

Previous Page | Next Page | Top of Page