Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Commit a DB2 Table on Unix Server and zOS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Vinodh S

New User


Joined: 12 Apr 2012
Posts: 30
Location: LA, California

PostPosted: Sun Apr 12, 2015 5:05 am    Post subject: Commit a DB2 Table on Unix Server and zOS
Reply with quote

Hi

I'm planning to have a DB2 program executed from the Mainframe.
The DB2 program will be accessing two set of DB2 tables.

One set of DB2 tables will be residing in the Mainframe and the other set of tables are residing in the Unix Server hosted outside the Zos Environment.

Note: My Bind card for the program has two Bind , one for the tables in the Mainframe db2 tables and a remote bind for the tables in the Unix server.

Question:
My question is, if I issue a commit command from the program , will the commit operation commit the tables on both the ZOs Tables and Unix DB2 tables ?

If so how will be able to check the SQLCODE and find that Both the Tables had committed successfully ?
In case the commit operation failed on the Z/OS DB2 tables but was successful how will I be able to check that and take a preventive action.

or Will I be able to commit the ZOs Table with a separate commit command and the Remote Unix DB2 tables with a separate commit command ? Is this possible ?


Thanks
Vinodh S
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Apr 13, 2015 1:41 pm    Post subject:
Reply with quote

What you've described is not less than an entire project in itself, actually. Though, you've just asked about the bind cards - does that mean the underlying architecture is in place already? If not - reading through this might help.


PS.: It's zOS as you use it in your subject. ZOs can be grammatically correct though!
Back to top
View user's profile Send private message
Vinodh S

New User


Joined: 12 Apr 2012
Posts: 30
Location: LA, California

PostPosted: Mon Apr 13, 2015 8:24 pm    Post subject:
Reply with quote

Thanks Anuj for your reply.

Yes the architecture has been in place. The setup between ZOs Db2 and the AIX DB2 tables has already been established.

But my question was related to the Commit operation and can a COMMIT be issues separately to the AIX DB2 and the ZOs DB2 tables.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1625
Location: NY,USA

PostPosted: Tue Apr 14, 2015 12:07 am    Post subject:
Reply with quote

Why would you not try all these scenario's in development region?

Hint: Access to the two-phase commit protocol provided by Resource Recovery Services (RRS)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts FTP Server and FTP.DATA vasanthz All Other Mainframe Topics 2 Wed Oct 12, 2016 11:49 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us