Hi :-)
As you look through you have a couple of options
1. You can use a union to continually merge the data in a compose, which will be cumulative, but you have to make sure you only have, under settings, Concurrence set to 1, this will remove duplicates as well if you want that
2. You can use Join
3. You can use a blank array (initialize it at the top) and you can append the data to the array after each call
4. You could create the file and then for each iteration use UpdateFile to essentially append the next set of data
I am not sure that creating one giant one is the right play since I do not know how many rows you have in each call, so update file might be best.
if its a small amount, then either use union/join or append it all to a blank array and then write it after your loop
If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.
Thank you!
Sincerely, Michael Gernaey