I both emailed and spoke to Jim on the phone and he gave some additional tips that I though I’d share, just in case someone else finds this thread interesting.
I didn’t read the documentation close enough on ITERATE.
Excerpt: “All variables must start with % and be either f (field), g (group), l (list), or s (segment). If there is more than one variable, use, for example %f1, %f2, and so on.” I wasn’t using one of those four single letters and a number. That was one issues (of several).
Another tip, unless the % variable is used in an actual address path (such as “1(0).1(%g1).1(%g99).OBX(0).#5(0)” ) you likely need to preface it with a dollar sign ($) so that TCL will interpret it correctly as a variable. This got me in an IF statement, MATH statement, and COPY statement.