Joined: 12 Apr 2012 Posts: 30 Location: LA, California
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.
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 ?
Joined: 22 Apr 2006 Posts: 6254 Location: Mumbai, India
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!