There is a problem with a DB2 COBOL program.
This program has a cursor to read a Db2 table. The first read of the table goes on fine.
The subsequent reads also go on fine as long as the call to another program is skipped.
If however, the other program is called, the next fetch from the table (cursor) in the main program fails with SQL code of -805.
This -805 SQL code occurs only if the other program is called.
Along with the SQL code of -805, the following details are being set:
SQLCAID > SQLCA