简体   繁体   中英

DB2 error code -991

I'm getting a return code of -991 upon running a db2 batch cobol program. The program is attempting to fetch 65 rows within a cursor structure. I cannot find anything on this particular error, does anyone know what it means ?

You probably want to look at the db2 documentation .

Error code -991 is here .

It says:

-991 CALL ATTACH WAS UNABLE TO ESTABLISH AN IMPLICIT CONNECT OR OPEN TO DB2. RC1= rc1 RC2= rc2

Explanation Call attach attempted to perform an implicit connect and open as the result of an SQL statement. The connect or open failed with the returned values. rc1 The value returned in FRBRC1 for the failed CONNECT or OPEN request. rc2 The value returned in FRBRC2 for the failed CONNECT or OPEN request. System action The statement cannot be processed.

Programmer response Verify that the application intended to use the call attachment facility (CAF) as the mechanism to connect to DB2®. For functions or stored procedures running in the WLM-established stored procedure address space the application must be link-edited with or dynamically allocate the RRS attachment language interface module (DSNRLI), not CAF.

SQLSTATE 57015

Hopefully that means something to you :)

In case you're still stuck, my google-fu is strong.

SQLCODE -991, Error: CALL ATTACH WAS UNABLE TO ESTABLISH AN IMPLICIT CONNECT OR OPEN TO DB2. RC1= RC2=

From http://theamericanprogrammer.com/programming/sqlcodes.shtml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM