I am having a LIST file that has number of file names written in the same. These files have unsorted data and my aim is to sort the records present in these input files.
I am currently dynamically allocating the input file as well as the output file with in the cobol program. The program is sorting as well as writing the first file properly.
But when I am trying to sort the next files, the SORTWORK variable is still having the last record of the previous file and thus I am unable to proceed with the sorting and the remaining files that are generated are having no records.
I have initialized the SORTWORK as well as WORKING STORAGE variables but this was of no help...
Can any one please let me know, where m i going wrong..