Posted: Tue Mar 14, 2006 1:20 pm Post subject: stored procedure
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
i am trying to invoke a db2 stored procedure on a zos db2 subsystem. the stored procedure doesnt not have any input parameters. this is more like a test SP.
i have
COMPUTE MODULE
call PROC1()
END
CREATE PROCEDURE PROC1() EXTERNAL NAME GGG.PROC;
The SP works fine from a COBOL program.
i get the following error
BIP2921E F9DCBRK default 41 THE PROCEDURE 'GGG.PROC' WITH '0' PARAMET
ERS COULD NOT BE MATCHED WITH A CORRESPONDING DATABASE STORED PROCEDUR
E. : ImbRdlRoutine(1136)
As the error says, the broker cannot find the procedure in the DB. Are you sure you have the authority to see it from the brokers userid? Are you sure it lives in schema GGG?
Regards. _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
Quote:
....the stored procedure doesnt not have any input parameters.
.......if that's true, then is it exporting an output parameter?
Quote:
BIP2921 Explanation
Stored Procedures must match the ESQL CREATE PROCEDURE definition in the following ways: 1: The ESQL parameters must all be of SCALAR type. 2: The directions of each ESQL and Database parameter (IN / OUT / INOUT) must match. 3: The number of parameters in both the ESQL and database definitions must match.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum