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

connect multiple db2 subsystem using single program


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

New User


Joined: 24 Jan 2006
Posts: 28

PostPosted: Tue Dec 15, 2009 6:44 pm
Reply with quote

Hi all,
Is it possible to connect multiple db2 subsystem using single program

If yess, what is required in appl program to achieve this.

Thanks in advance.
Cdhami
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Dec 15, 2009 7:08 pm
Reply with quote

cdhami,

Yes. It is possible.

You need to use CONNECT statements in your application program.

Code:
EXEC SQL CONNECT TO EASTDB;
-- execute statements referencing objects at EASTDB
EXEC SQL CONNECT TO WESTDB;
-- execute statements referencing objects at WESTDB


The location names you can get from SYSIBM.LOCATIONS table.

For more complete infomation on CONNECT, take a look at SQL reference manual.

Sushanth
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 Using API Gateway from CICS program CICS 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Connect Direct 6.3 for Z/OS All Other Mainframe Topics 20
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top