Ansicht
Dokumentation

SQL0507 - Cursor &1 not open. ( OS/400 )

SQL0507 - Cursor &1 not open. ( OS/400 )

CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by IBM.
SAP E-Book


Message : SQL0507
Cursor &1 not open.

Message Long Text :

Cause . . . . . : Cursor &1 was specified in an UPDATE or DELETE statement, but the cursor is not open. Cursor &1 has one of the following conditions:
-- Cursor &1 was never opened.
-- The cursor &1 was opened in another program or another call of this program and the program was created with CLOSQLCSR(*ENDPGM).
-- The cursor &1 was opened in another module or another call of this module and the module was created with CLOSQLCSR(*ENDMOD).
-- The cursor &1 was opened in another call of this program and programs which have run SQL statements have ended and the program was created with CLOSQLCSR(*ENDSQL).
-- The cursor &1 was opened in another call of this module and the activation group was ended between calls. The program was created with CLOSQLCSR(*ENDACTGRP).
-- The cursor was closed by a CLOSE, COMMIT, or ROLLBACK statement.
Recovery . . . : Do one of the following and precompile again:
-- Make certain that cursor &1 is opened in the same program or module call prior to using the cursor in an UPDATE or DELETE statement.
-- Specify either CLOSQLCSR(*ENDSQL), CLOSQLCSR(*ENDJOB), or CLOSQLCSR(*ENDACTGRP) when precompiling the application.
-- If the cursor was closed by a COMMIT or ROLLBACK, specify HOLD on the COMMIT or ROLLBACK statement to preserve any open cursors, prepared statements, and locks on tables.

Message File : QSQLMSG
Library Message File : QSYS2924


SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by IBM.

Length: 3219 Date: 20240427 Time: 051231     sap01-206 ( 3 ms )