$next variable is set at the start of every iteration (and
at the non-
BREAK end) of looping statements, e.g.
TIMPORT etc. Inside the loop, it is equal to the
iteration count (counting from 1), plus the
SKIP value. At the
end of the loop, it is thus the value to use for
SKIP in a new
SQL to continue iterating at the next value.