IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Binding cobol program to two different DB2 region


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krishnadevanur

New User


Joined: 02 Aug 2006
Posts: 8

PostPosted: Tue Nov 27, 2007 11:00 pm
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
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Wed Nov 28, 2007 11:10 am
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: 8

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

Thanks for the info Srihari
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top