| Functions and CALL Routines |
| Valid in: | DATA step, PROC SQL, or SCL |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| DQLOCALEGUESS(char, 'locale-guess-definition') |
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.
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 |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.