modified scripts so that extracted data is sorted and then entered into the appropriate flat file for processing.