TOKEN: Extracting a Token From a String

How to:

The token function extracts a token (substring) from a string of characters. The tokens are separated by a delimiter consisting of one or more characters and specified by a token number reflecting the position of the token in the string.

Syntax: How to Extract a Token From a String

TOKEN(string, delimiter, number)

where:

string

Fixed length alphanumeric

Is the character string from which to extract the token.

delimiter

Fixed length alphanumeric

Is a delimiter consisting of one or more characters.

TOKEN can be optimized if the delimiter consists of a single character.

number

Integer

Is the token number to extract.

Example: Extracting a Token From a String

WebFOCUS

Feedback