writing CVS file from Pilot Data dump