On occasion in our nightly batch processing our applications will encounter an SQL -501 on a FETCH statement. Conditional logic is specified to only attempt a FETCH if the OPEN received a 0 error code. The high-level language we are using is COBOL. Are there any reasons why an SQL cursor inside COBOL would close without issuing a CLOSE statement?

Reply With Quote