|
View previous topic :: View next topic
|
| Author |
Message |
Ajay Baghel
Active User
.jpg)
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
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 |
|
 |
anv2005
New User
Joined: 14 Jul 2005 Posts: 44 Location: US
|
|
|
|
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 |
|
 |
ruodeer
New User

Joined: 06 Jul 2007 Posts: 58 Location: home
|
|
|
|
| Subsystem in DB2 z/os version is similar to Instance in DB2 windows version which provides a separate DB2 environment . |
|
| Back to top |
|
 |
Ajay Baghel
Active User
.jpg)
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
|
|