I'm trying to write a macro that will create variables
More broadly, what is that macro producing ?
(or what problem is it aiming to solve ?)
Depending on the broader goals and context, it may also be worth looking at Sqlite, if, for example you want to produce a series of rows: