Functions and CALL Routines |
Returns the name of the locale that is most likely represented
by a character value.
Valid in: |
DATA step, PROC SQL, and SCL
|
DQLOCALEGUESS (char,'locale-guess-definition')
|
- 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.
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.
The following example returns the name of a locale as the value of LOC.
loc=dqLocaleGuess('101 N. Main Street', 'Address');
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.