| Functions and CALL Routines |
| Valid in: | DATA step, PROC SQL, or SCL |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| DQGENDER(char, 'gender-analysis-definition'<, 'locale'>) |
is 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 gender analysis definition.
| Restriction: | must exist in the specified locale. |
(optional) specifies the name of the locale that contains the specified gender analysis definition. The value can be a name in quotation marks, the name of a variable whose value is a locale name, or an expression that evaluates to a variable name or to a quoted locale name.
The specified locale must be loaded into memory as part of the locale list.
| Default: | the first locale in the locale list. |
| Restriction: | if no value is specified, the default locale is used. |
| See: | Load and Unload Locales. |
| Details |
The DQGENDER function evaluates the name of an individual to determine the gender of that individual. If the evaluation finds substantial clues that indicate gender, the function returns a value that indicates that the gender is female or male. If the evaluation is inconclusive, the function returns a value that indicates that the gender is unknown. The exact return value is determined by the specified gender analysis definition and locale.
| Example |
The following example returns the value M for the variable GENDER:
gender=dqGender('Mr. John B. Smith', 'Gender', 'ENUSA');
| See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.