If you mean with "list" that you have multiple host variables and you may not know how many (very different meaning from the usual usage of that term), then the answer is "yes". You can set up an SQLDA with as many SQLVAR members as you need, set up each SQLVAR and then execute the static or dynamic embedded SQL statement with that SQLDA.