Dear all:
I have a strange error by our batch COBOL!
The batch processing with SAM and VSAM,
1. read SAM , compare with VSAM
2. insert the new and rewrite the exist to VSAM
3. after read entire SAM, start VSAM from 1st record
4. VSAM READ NEXT until end
5. compare the non-key value with a date value
6. if greater , pass
7. if less or equal, delete the VSAM record, then check the VSAM status
After normal processing insert and rewrite 800 records, and delete 1700 records,
the program is end at "step 7", the status key value is 23.
After interprete the COBOL , I think the error occure at "READ NEXT" and doubt
rewrite records in "step 2" cause the problem, but not sure.
Can anyone help me to explain it?