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



Rab,

three part alias is nothing great or new (it's only another mode of writing for a feature, existing from the beginning of DB2/400). You could redirect the output of a select statement to a local outfile with interactive SQL and QMQRY and this is working for local files and remote files in the RDBDIR. With ArdGate you could do this with files of any JDBC capable database. It only works in one direction (to local) and you can't join or update tables this way.

Dieter

PS: @InfoSphere Federation Server: this product is not running on AS/400, i Series, System i, Power i or how you would call OS/400 and it never did. It's running on AIX, HP-UX, Linux, Solaris, Windows. It's very expensive and installation and configuration will take much more time and it will be by far easier to use a connect by ArdGate to MS SQL Server with a linked table on SQL Server pointing to a table in DB2/400.

To clearify again: The requirement of the OP (updating a local table with data from a remote table) is very basic for embedded SQL, but it's not possible with a single SQL statement. The modified requiremen (insert local select remote) is possible for all releases with QMQRY (STRQMQRY <QueryName> OUTPUT(*OUTFILE) OUTFILE(MYLIB/MYFILE) RDB(MYRDB). If you are on V7R1 you could use the brandnew very great feature three part alias, to do the same thing.

D*B




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.