dbTalk Databases Forums  

zOS equivalent to nicknames

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss zOS equivalent to nicknames in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chuck
 
Posts: n/a

Default zOS equivalent to nicknames - 05-05-2010 , 02:47 PM






Hi,
I'm getting acquainted with Federated data. In this context I've a
question. On LUW I can create nicknames for tables on DB2 for zOS .
What is the equivalent action on DB2 for zOS? How do I refer to a
table on an LUW DB2 instance? Do I use alias? If so how do I create
this? I don't want to explicitly connect from my application (Cobol)
if I don't have to.
Thanks!

Reply With Quote
  #2  
Old   
Anwei Shen
 
Posts: n/a

Default Re: zOS equivalent to nicknames - 05-06-2010 , 11:27 AM






On May 5, 3:47*pm, chuck <charles.levi... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
I'm getting acquainted with Federated data. *In this context I've a
question. *On LUW I can create nicknames for tables on DB2 for zOS .
What is the equivalent action on DB2 for zOS? *How do I refer to a
table on an LUW DB2 instance? *Do I use alias? *If so how do I create
this? *I don't want to explicitly connect from my application (Cobol)
if I don't have to.
Thanks!
Not sure how zOS support Federation, but you can connect to UDB
directly from Cobol.

Reply With Quote
  #3  
Old   
chuck
 
Posts: n/a

Default Re: zOS equivalent to nicknames - 05-06-2010 , 12:51 PM



On May 6, 12:27*pm, Anwei Shen <shenan... (AT) gmail (DOT) com> wrote:
Quote:
On May 5, 3:47*pm, chuck <charles.levi... (AT) gmail (DOT) com> wrote:

Hi,
I'm getting acquainted with Federated data. *In this context I've a
question. *On LUW I can create nicknames for tables on DB2 for zOS .
What is the equivalent action on DB2 for zOS? *How do I refer to a
table on an LUW DB2 instance? *Do I use alias? *If so how do I create
this? *I don't want to explicitly connect from my application (Cobol)
if I don't have to.
Thanks!

Not sure how zOS support Federation, but you can connect to UDB
directly from Cobol.
Yes that's true by making the requisite entries in the CDB
(SYSIBM.IPNAMES and SYSIBM.LOCATIONS etc) I can connect to LUW. But
how can I join a zOS table with an LUW table from a Cobol program on
the mainframe (I could define nicknames for the zOS Db2 tables on LUW
and accomplish but that seems roundabout!)

Reply With Quote
  #4  
Old   
Larry
 
Posts: n/a

Default Re: zOS equivalent to nicknames - 05-06-2010 , 07:36 PM



chuck wrote:
Quote:
On May 6, 12:27 pm, Anwei Shen <shenan... (AT) gmail (DOT) com> wrote:
On May 5, 3:47 pm, chuck <charles.levi... (AT) gmail (DOT) com> wrote:

Hi,
I'm getting acquainted with Federated data. In this context I've a
question. On LUW I can create nicknames for tables on DB2 for zOS .
What is the equivalent action on DB2 for zOS? How do I refer to a
table on an LUW DB2 instance? Do I use alias? If so how do I create
this? I don't want to explicitly connect from my application (Cobol)
if I don't have to.
Thanks!
Not sure how zOS support Federation, but you can connect to UDB
directly from Cobol.

Yes that's true by making the requisite entries in the CDB
(SYSIBM.IPNAMES and SYSIBM.LOCATIONS etc) I can connect to LUW. But
how can I join a zOS table with an LUW table from a Cobol program on
the mainframe (I could define nicknames for the zOS Db2 tables on LUW
and accomplish but that seems roundabout!)
The only thing you could EXPLORE (and I'm not sure if this would work)
is to set up a Federation Server on LUW with a Federated database
defined "in front of" two DB2 for LUW databases. Then, you can set up
that Federated database as a DRDA-AS to be served by the DB2 on z/OS as
a DRDA-AR. I know that I've seen this kind of environment set up when a
mainframe DB2 app requires access to a non DB2 LUW db (e.g. Oracle) via
Infosphere Federation Server.

Larry Edelstein

--- news://freenews.netfront.net/ - complaints: news (AT) netfront (DOT) net ---

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.