go to post Ryan Pflughaupt · Sep 22, 2023 Thanks for the reply! Looking at your example I am wanting to have "TEST" be a variable that can be set. Right now my nested FOR and $Order loops are starting at a static point. I want to be able to change my starting global without just writing another program. USER>set GV = "TEST" USER>set GlobalVar=$NAME(^["IRISMYDEV"]GV) USER>zwrite @GlobalVar ^["IRISMYDEV"]TEST("a")="Test" ^["IRISMYDEV"]TEST("a","b")="66739,34774" ^["IRISMYDEV"]TEST("a","b","c")="Apple\Orange-Peach#ball\1#0#1#1" USER>set sub=$query(@GlobalVar) for quit:sub="" write sub,! set sub=$Query(@sub) ^["IRISMYDEV"]TEST("a") ^["IRISMYDEV"]TEST("a","b") ^["IRISMYDEV"]TEST("a","b","c")