Q 1. "why the original syntax is incorrect", A 1. Please RTM of SUBSTR(). The third element is length of the extract, not the position of ending point. Q 2. " if there's a better way", A 2. Not sure about that, but there are definitely alternatives, for one, using PRX functions: extract=prxchange('s/.+(.{20}experience.{30}).+/$1/io', -1, jobtext);
... View more