Append results from loop connection

hello, I am new to this forum. I have a simple loop connection that loops thru 3 databases, connects to each one and executes one common SQL file. I am unable to get the 3 outputs appended to a single file. The content of the resulting file is from the last iteration. How do I fix this so that the output from each iteration is appended to the previous output. thanks!

Hi, what the output file format?