If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Single package bind with two different DB2 Databases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-11, 20:25
mf001 mf001 is offline
Registered User
 
Join Date: Jul 2011
Posts: 2
Single package bind with two different DB2 Databases

Hi,
I have a requirement where i need to write one cobol db2 program which need to access two different db2 databases on two different DB2 sub system.
That means, i have 2 select sql queries in a single cobol program to read 2 different tables lying in 2 different databses.

Can anybody tell me if it will create any issue during bind? Since, i will have one package i am not sure if it is possible to bind one single package accessing 2 different tables in 2 different databses. I need you expert thoughts on this as quick as possible.

Thanks
_________________
Vinit
Reply With Quote
  #2 (permalink)  
Old 07-19-11, 06:56
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you need todo the bind against each database
you have to specify an option to ignore the errors and continue (depending on source platform and target platform) because some objects might not be available on both databases and packages should be created on both db
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 07-19-11, 09:04
mf001 mf001 is offline
Registered User
 
Join Date: Jul 2011
Posts: 2
Smile

Thanks a ton!!. Can you please let me know what parameters are needed to ignore the errors and continue? Also, will this parameter will override all the errors or just the error due to having 2 databases? I mean to say, suppose i have two databse db11 and db12 and i am trying to bind db11. Now i only want to ignore the error i may get due to db12 sql stuffs in my package. If there is any other true errors in db11 sqls i do not want to continue. Looking for your expert thoughts.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On