Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Binding cobol program to two different DB2 region

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
krishnadevanur

New User


Joined: 02 Aug 2006
Posts: 5

PostPosted: Tue Nov 27, 2007 11:00 pm    Post subject: Binding cobol program to two different DB2 region
Reply with quote

Hi,
I have a cobol program which is having SQL queries using two different DB2 regions (DBP3 and DBP4). The query which gets data from DBP4 will be fired on a view of a table belonging to DBP4. The query fired to DBP3, will fetch data from table in DBP3. I bound the program to DBP3 but the data which should come from DBP4 table's view is missing. How to bind this program ?
Back to top
View user's profile Send private message
References
PostPosted: Tue Nov 27, 2007 11:00 pm    Post subject: Re: Binding cobol program to two different DB2 region Reply with quote

Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 164
Location: Pune

PostPosted: Wed Nov 28, 2007 11:10 am    Post subject:
Reply with quote

Krishna,
I suppose you need to use remote bind in this case, But for that you should first establish DDF connections. You have to update SYSIBM.USERNAMES table. Please contact your DBA for this setup.

Friends,
Please let us know, in case if there is any other method available for acheiving the same.
Back to top
View user's profile Send private message
krishnadevanur

New User


Joined: 02 Aug 2006
Posts: 5

PostPosted: Wed Nov 28, 2007 7:51 pm    Post subject:
Reply with quote

Thanks for the info Srihari
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1