Skip to Main Content
Return to Navigation

Using Text Strings as Parameters in Functions

The following rules apply when text strings are used as parameters in functions:

Note: PTF will return an error (unrecognized / illegal variable format) if the user fails to wrap a text string being supplied as a parameter for a function in quotes.

This table shows examples of the text string used in the recognition field assuming the variable&MyVar is set to “Hello” (&MyVar=”Hello”) and the expected results:

Recognition

Expected Result

CONCAT("&MyVar = "

| &MyVar)

&MyVar = Hello

SUBSTR("Hello" | 1 | 5 )

Hello

SUBSTR("""Hello """| 1 | 7 )

"Hello"

INSTR("Hello" | "e" )

2

INSTR("""Hello"""| "e" )

3

INSTR("""Hello""" | ""e"")

0

INSTR(Hello | e )

PTF returns error message