finishing up the loop of parsing record sets into CSV files