SAS Institute. The Power to Know

SAS(R) Data Quality Server 9.2: Reference

Previous Page | Next Page

Functions and CALL Routines

DQPARSEINFOGET Function



Returns the token names in a parse definition.
Valid in: DATA step, PROC SQL, or SCL

Syntax
Details
Example
See Also

Syntax

DQPARSEINFOGET('parse-definition' <, 'locale'>)

parse-definition

specifies the name of the parse definition.

locale

(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

Previous Page | Next Page | Top of Page