MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem in executing a stored procedure

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
srikanth.bh
Beginner


Joined: 23 Jul 2004
Posts: 8
Topics: 4

PostPosted: Wed Jul 28, 2004 4:19 am    Post subject: Problem in executing a stored procedure Reply with quote

Hi all,

We have created a stored procedure using dynamic SQL programming. also we are using changeman for compilation and binding. the pgm which calls stored procedure is getting executed. but the stored procedure is not being executed even after "EXEC SQL CALL PROC(<parms>) END-EXEC" being executed. the steps before and after the stored proc call, in the calling pgm are getting executed without any error message or abend.

to check whether there is any problem with bind or anything, jus before the stored procedure is called we executed a sample query and observed the SQLCODE. we were getting all wierd SQLCODES like "000000080N"
we tried executing the stored proc directly without a calling pgm. but that is also failing with another wierd sqlcode "000000099J". really not sure on where the problem might be. can anyone please suggest.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Jul 28, 2004 5:15 am    Post subject: Reply with quote

Srikanth,


The sql codes 000000080N translates to -805 and here is an explanation of that

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNMCH11/2.1.6.378?SHELF=&DT=20010718150520&CASE=

The sql codes 000000099J translates to -991 and here is an explanation of that

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNMCH11/2.1.6.432?SHELF=&DT=20010718150520&CASE=

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Jul 28, 2004 5:46 am    Post subject: Reply with quote

Srikanth,

If you have any further questions please post it here it self. Please do not send private emails. Any way your offline questions are answered in this post

http://www.mvsforums.com/helpboards/viewtopic.php?t=2086&highlight=stored+procedure

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group