× 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.



Across systems, no. you can only connect to one database at a time.
Generally I connect to the remote system & process via cursor and then use
RLA for the local database. (of course, you could also dump the resulting
data from the remote system into QTEMP and reconnect to the local database
and process that using SQL)

Thanks,
Tommy Holden



From: Joe Pluta <joepluta@xxxxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 03/17/2011 07:34 AM
Subject: Re: Censoring SQL access -- ideas?
Sent by: midrange-l-bounces@xxxxxxxxxxxx



Somebody else mentioned this to me, Tommy. I should know more about
this. I'm going to do some research. Can you JOIN files in two
different databases?

Joe

Sure it can be done with SQL. You set up an RDB entry pointing to the
other system and use CONNECT to access the data on the remote system.

Thanks,
Tommy Holden



From: Joe Pluta<joepluta@xxxxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion<midrange-l@xxxxxxxxxxxx>
Date: 03/16/2011 10:24 PM
Subject: Re: Censoring SQL access -- ideas?
Sent by: midrange-l-bounces@xxxxxxxxxxxx



On 3/16/2011 1:27 PM, rob@xxxxxxxxx wrote:
Joe,

True on the ORDER BY limit in a view, but you might want to take a look
at
the enhancements done to CREATE INDEX.
CREATE INDEX, with the RCDFMT clause and the WHERE clause is a
beautiful
thing. I believe that the index fields and the fields added in the
RCDFMT
clause can be UDF's.


http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/db2/rbafzxcindx.htm



Rob Berendt
Yeah, I've been reading about that. It has its limitations as well; as
far as I can tell you're stuck with the layout of the underlying table.
One of the primary benefits of the view is to select and omit columns,
and the INDEX ... WHERE doesn't give you that. Logical files still do
the combined sort, select and reformat better than any one tool in the
SQL toolkit.

One other thing - you can't do SQL on a DDM file. There are
circumstances where getting at a table on another i is required. With
RLA, it's CRTDDMF and I'm done. With SQL, it's impossible. (Yes, it
can be done with ODBC/JDBC, but not with standard SQL.)

Joe


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.