(SSUBCD(text,n,delimiter))
Captures substring number n from text, returning a text string. Substrings in text are separated with a specified custom delimiter.
In the following example, the value for vSubString is "Reports".
SET VAR vSubString = (SSUBCD('Forms|Reports|Labels',2,'|'))