Example 9.24. Combining string and positional patterns
/* Template containing string pattern, then variable name, then */ /* relative positional pattern does not skip any data. */ string="REstructured eXtended eXecutor" parse var string var1 3 junk "X" var2 +1 junk "X" var3 +1 junk say var1||var2||var3 /* Concatenates variables; displays: "REXX" */