richhcir2 said:I was hoping to do it on the fly, but I think I'll have to hardcode the database names, repeat the code for each one, and do a for each as you suggest.
Thanks
/* main.p */
do x = 1 to num-dbs:
run main.i string( ldbname(x) + "." ).
end.
/* main.i */
for each {1}_file where not(_hidden):
/* do stuff here */
end.