Returns a parsed character value.
Valid in: | DATA step, PROC SQL, and SCL |
Restriction: | Always use the DQPARSETOKENGET function to extract tokens from parsed values. To extract tokens from values that do not contain delimiters, use the DQTOKEN function. |
Requirement: | If specified, the locale must be loaded into memory as part of the locale list. |
the value that is parsed according to the specified parse definition. The value must be the name of a character variable, or a character value in quotation marks. Also valid, an expression that evaluates to a variable name or quoted value.
the name of the parse definition. The definition must exist in the locale that is used.
specifies a character constant, variable, or expression that contains the locale name.
Default | The first locale in the locale list. If no value is specified, the default locale is used. |
parsedValue=dqParse('Mrs. Sallie Mae Pravlik', 'NAME', 'ENUSA'); prefix=dqParseTokenGet(parsedValue, 'Name Prefix', 'NAME', 'ENUSA'); given=dqParseTokenGet(parsedValue, 'Given Name', 'NAME', 'ENUSA');