MainStreet
Programmer
Dear All,
I'm new to Cobol and have only been using it for a couple of months. As a result I'm a little stuck and was hoping for a few pointers. My problem is this:
I have 2 files (just plain text files). I have set up FD sections in the File Section for these files and now want to check one file against the other. I want to check the files according to just one data-item (the primary key?)(which both files posess). The first file is correct and is the one which I will check the second file against. The second one has errors in its primary key and so I want to output these corrupt records to an error-file and the correct records to a no-error-file.
Has anyone got any ideas as to how I would go about doing this? Any little tips would be much appreciated.
Thanks,
Bill.
I'm new to Cobol and have only been using it for a couple of months. As a result I'm a little stuck and was hoping for a few pointers. My problem is this:
I have 2 files (just plain text files). I have set up FD sections in the File Section for these files and now want to check one file against the other. I want to check the files according to just one data-item (the primary key?)(which both files posess). The first file is correct and is the one which I will check the second file against. The second one has errors in its primary key and so I want to output these corrupt records to an error-file and the correct records to a no-error-file.
Has anyone got any ideas as to how I would go about doing this? Any little tips would be much appreciated.
Thanks,
Bill.