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 

Doubt in DB2 Stored Procedure Bind process.

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


Joined: 14 Sep 2006
Posts: 1
Topics: 1

PostPosted: Thu Sep 14, 2006 3:12 pm    Post subject: Doubt in DB2 Stored Procedure Bind process. Reply with quote

In a new DB2 stored procedure program I'm using two tables Tab1 and Tab2.

Tab1 table is a local database table and Tab2 is in central database.

When i am trying to bind this stored procedure with a package i am getting a bind error(SQLCODE -204).

To avoid this problem I'm calling a subprogram that will contain Tab2 table (to bind it separately) and the main program will only contain local table and use the data returned by subprogram.

Is there any way that I can use both the tables in a single program?
I want a single Bind card to accomodate both tables.

Regards
RSK
Back to top
View user's profile Send private message
programmer1
Beginner


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Fri Sep 15, 2006 4:34 am    Post subject: Reply with quote

If I understood your problem, Tab1 table is created on your User Id and Tab2 is on the central database.

In the program, use Tab1 qualified with your user id and use Tab2 without a qualifier.

The package must have an access to the Central database.
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
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