SQLCODE -981,SQLERRMC:00C12219

时间:2019-04-28 18:15:42

标签: db2 db2-zos

运行COBOL + DB2程序时,我得到的是SQLCODE -981 SQLERRMC:00C12219。该程序使用INCLUDE SYSLIB(DSNELI)进行链接编辑。

我成为-981的可能原因是什么?

使用INCLUDE SYSLIB(DSNELI)编辑的链接。RRSAF线程显示为活动状态。

2 个答案:

答案 0 :(得分:0)

IBM文档报告此:

-981   THE SQL STATEMENT FAILED BECAUSE THE RRSAF CONNECTION IS NOT IN A STATE THAT ALLOWS SQL OPERATIONS, REASON reason-code.
Explanation
The application attempted to execute an SQL operation, but the RRSAF connection was not in a state that allows the processing of SQL statements.

System action
The statement cannot be processed.

Programmer response
Correct the error in the application, REBIND, and run the application again.

SQLSTATE
57015

因此,请尝试检查详细消息,并验证原因代码将帮助您解决问题。

答案 1 :(得分:0)

也许是计划问题。检查一下。