Previous Topic: Example 2Next Topic: Example 4


Example 3

Normally single quotes are used to enclose character strings. However, if the character string contains a comma, double quotes are required. This example looks for the character string ABC,DEF,GHI beginning on position 5, and prints them to SYSLIST, if found.

COPY,
  IF(5,EQ,C"ABC,DEF,GHI"),
    PRINTREC