Ansicht
Dokumentation
SQL0516 - Prepared statement &2 not found. ( OS/400 )
General Material Data BAL Application Log DocumentationThis documentation is copyright by IBM.
Message : SQL0516
Prepared statement &2 not found.
Message Long Text :
Cause . . . . . : &2 is not a valid prepared statement. The statement has one of the following conditions:
-- The statement has never been prepared.
-- The statement was prepared in another program or another call of this program and the program was created with CLOSQLCSR(*ENDPGM).
-- The statement was prepared in another module or another call of this module and the module was created with CLOSQLCSR(*ENDMOD).
-- The statement was prepared in another call of this program and programs which have run SQL statements have ended and the program was created with CLOSQLCSR(*ENDSQL).
-- The statement was prepared in another call of this module and the activation group ended between calls. The module was created with CLOSQLCSR(*ENDACTGRP).
-- A COMMIT or ROLLBACK statement has destroyed all the prepared statements.
Recovery . . . : Do one of the following and precompile again:
-- Make certain that &1 has been prepared in the same program or module call prior to using the DESCRIBE statement or specify either CLOSQLCSR(*ENDSQL), CLOSQLCSR(*ENDJOB), or CLOSQLCSR(*ENDACTGRP) when precompiling the application.
-- If the statement was deleted 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
PERFORM Short Reference Vendor Master (General Section)
This documentation is copyright by IBM.
Length: 3230 Date: 20240425 Time: 134324 sap01-206 ( 2 ms )