Hi,
The loop within a loop can only be achieved by creating an inner loop within each row of a top level loop, using the correct array structure. (See docs.)
You can always build the inner loop first, and then assign it to each row when you're building the top level loop.
And as you correctly point out, the GLOBAL_VARS option is only for VARS.
Regards,
Kelvin