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

what is DB2 subsystem and how is it related to tables ?


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

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Wed Jan 23, 2008 8:26 pm
Reply with quote

Friends,

This is quite a naive question. I want to know what a DB2 Subsystem is and how is it related to the tables.

I know when i want to test a db2 program, i give the name of the DB2 subsystem, say DSNT2, in SYSTIN card.
But what if the Alias in the program is referring to a table on remote db2 subsystem DSNT3 and rest of the queries are referring to tables on DSNT2. How can I put two db2 subsystem names in the SYSTIN card?

Thanks,
Ajay
Back to top
View user's profile Send private message
anv2005

New User


Joined: 14 Jul 2005
Posts: 44
Location: US

PostPosted: Thu Jan 24, 2008 12:39 am
Reply with quote

Use DB2 SQL statement CONNECT:

EXEC SQL
CONNECT TO RMTDB2
END-EXEC.

RMTDB2 identifies a location name of a remote DB2 subsystem.

The DB2 table sysibm.locations defines the location names of such DB2 subsystems.
Back to top
View user's profile Send private message
ruodeer

New User


Joined: 06 Jul 2007
Posts: 58
Location: home

PostPosted: Thu Jan 24, 2008 6:53 am
Reply with quote

Subsystem in DB2 z/os version is similar to Instance in DB2 windows version which provides a separate DB2 environment .
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Fri Jan 25, 2008 3:12 pm
Reply with quote

Still i am unclear about it as far as my question is concerned in terms of z/os.

Quote:
I know when i want to test a db2 program, i give the name of the DB2 subsystem, say DSNT2, in SYSTIN card.
But what if the Alias in the program is referring to a table on remote db2 subsystem DSNT3 and rest of the queries are referring to tables on DSNT2. How can I put two db2 subsystem names in the SYSTSIN card?


Please clear my doubt about above question.

Thanks,
Ajay
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Jan 25, 2008 9:36 pm
Reply with quote

Hello,

I'd suggest you talk with the people who provide database support on your system. They can tell you if you can do what you want on that system and how you should do it on that system.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Question regarding ISPF tables with T... TSO/ISPF 11
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Need to fetch data from so many DB2 t... DB2 9
No new posts Retrieve IMS SubSystem Name IMS DB/DC 2
No new posts Get name of Subsystem routine is exec... All Other Mainframe Topics 2
Search our Forums:


Back to Top