| Functions and CALL Routines |
| Valid in: | DATA step, PROC SQL, or SCL |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| DQPARSEINFOGET('parse-definition' <, 'locale'>) |
specifies the name of the parse definition.
(optional) specifies the name of the locale that contains the specified parse 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 DQPARSEINFOGET function returns the names of the tokens that can be inserted into character values using the DQPARSETOKENPUT function. You can also use the token names to return token values with the functions DQPARSETOKENGET and DQTOKEN.
| Example |
The following example returns the token names for the parse definition E-MAIL in the locale ENUSA and displays the token names in the SAS log.
tokenNames=dqParseInfoGet('e-mail', 'ENUSA'); put tokenNames;
After this function call, the value of the TOKENNAMES variable is Mailbox,Sub-Domain,Top-Level Domain, which are the names of the three tokens in this parse definition.
| See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.