× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Jim

As far as I know, the answer is no. Unless you have the DB2 Multisystem product. I've no idea of the cost of that product. The thing is, you can have only one SQL (DRDA) connection active at a time. Even when discussing DUW (distributed unit of work), this sentence is seen:

Each SQL statement must refer to data at a single location.

The concepts of RUW and DUW seem more related to transactions (commit & rollbacks) than about access to data on multiple servers in a single SQL statement.

From the DB2 UDB SQL Reference for Cross-Platform Development Version 2 manual:

Most SQL statements can be remotely prepared and executed with the following restrictions: -- All objects referenced in a single SQL statement must be managed by the same application server. -- All of the SQL statements in a unit of work must be executed by the same application server.

So this seems to be a restriction across the several flavors of DB2.

What this says to me is, you have to finish up with your work at one server, then move on to the next. So a header/detail kind of structure is not as easy - you might need to reposition every time you come back to the header, or get the entire header, then loop through it.

BTW, our RPG2SQL product does not have this limitation - the "cursor" position of each result set is persistent. There has been some talk of us vendors coming up with a DRDA interface, and it is intriguing, but it would put us under the same restrictions listed above, AFAIK.

HTH
Vern

At 01:02 PM 6/13/2005, you wrote:

Hey Everybody,

I've been reading though the iSeries infocenter and I'm a little confused.

Here's the situation... I have 2 tables.  One on system A and one on system
B.  I want to run a query of this form; 'select a.*, b.* from a inner join
b on a.id = b.id'

1. Is this possible?
2.  How?  Do I need to setup DRDA connections, etc?



Jim McLean


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.