DO WHILE NOT FEOF(hinfile) && get variable values from infile &&The section below is what needs to be put into a scipt,quotes and all \INSERT INTO "_SMDBA_"."_INVSRVHIST_"("ACTION","ITEM") \\VALUES(<<state>>,(SELECTInventory_Items."Sequence" AS "seq.InventoryItem" \ FROM "_SMDBA_"."Inventory Items" Inventory_Items \WHERE \ Inventory_Items."Configuration ID" = '<<configid>>' AND \ Inventory_Items."Part Description" LIKE 'pentium%')); \ <strong>ENDDO</strong> not LOOPTry the above change.