After running a general query to collect lots of data with general header of bin01, bin02, .... bin16. I want to update column headers based on a different able that has bin information based on recipe. This seems an easy task using a munger command, but errors when placed into a nested loop. Same syntax works in a single loop format, but since there will be a variable number of bin values to replace 1 to 16 possible a loop structure is preferred. I have attached sample data tables and JSL. Any recommendations are appreciated. Working on this issue using JMP16.1