Why do I receive SQLCODE -924 when rerunning a Cobol DB2 program with InterTest

Document ID : KB000117856
Last Modified Date : 19/10/2018
Show Technical Document Details
Question:
Why do I receive SQLCODE -924 when rerunning a Cobol DB2 program with InterTest in foreground?
If we go back to panel IBCHDB20, we can rerun the program without any problem.
Answer:
This is working as designed. 
There is a note as follows in chapter "Test IBM DB2 Applications": 
"Note: This procedure does not let you end the program and return to the Execution Control panel to retest the same program. You must exit the application and rerun the CLIST (Step 1). ..." 
on this page in our documentation: 
https://docops.ca.com/ca-intertest-and-ca-symdump/10-0/en/using-batch-tools/batch-debugging/testing-procedures/test-ibm-db2-applications