Hi Gabriel,
it is easy to manage, it depends if n is fix or variable. If it is fix you take for every colum from table1 a link to you table2, so each link writes a row.
If it is variable you have to use the multivalue function of a hash file.
So much success for you.
Wolfgang Huerter
=====================
Cologne, Germany