SAS Institute. The Power to Know

SAS(R) Data Quality Server 9.2: Reference

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, or SCL

Syntax
Details
Example
See Also

Syntax

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

char

is the value that is analyzed to determine a locale, according to the specified guess definition. The value can be the name of a character variable, a character value in quotation marks, or an expression that evaluates to a variable name or a quoted value.

locale-guess-definition

specifies the name of the 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 the highest score is held by more than one locale or if none of the locales contain the specified locale guess definition, then the return value is the name of the first locale in the locale list.


Example

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

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

The name of the locale that is returned depends on which locales are loaded into memory.


See Also

Previous Page | Next Page | Top of Page