The dqGender() function will take the input value provided and then attempt to parse the input using the associated parse definition - in this case the parse definition named 'Name'. The parse definition needs a full name in order to determine what the tokens are (i.e. given name, last name, etc). If you provide only a single word to the parse definition, it will not be able to properly determine what token the word represents and furthermore the gender definition is not able to accurately determine the gender when there is only one token value which is why it normally returns unknown for single word inputs. If you would like to provide just the first name to the gender definition, you can utilize the dqGenderParsed() function. This function takes a preparsed input and thus avoids performing the parse. This should provide the results you are looking for. Here is a sample of how you would invoke the dqGenderParsed() function assuming you have a variable named 'first_name' that contains the first names you want to perform the gender analysis on, as you first need to get the input into what is called a delimited string. length delm_string $ 200; length result $ 2; delm_string=dqParseTokenPut('', first_name, 'Given Name', 'Name'); result=dqGenderParsed(delm_string, 'Name'); put result=;
... View more