Yes, UNION ALL clause.
For example:

CREATE VIEW QTEMP/ALLFILES AS
(SELECT * FROM lib1/FILEA
UNION ALL
SELECT * FROM lib2/FILEA
UNION ALL
SELECT * FROM lib3/FILEA)

Now query the QTEMP/ALLFILES view or read it sequentially using RLA.

Elvis

Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
OS/400
www.centerfieldtechnology.com


-----Original Message-----
Subject: SQL question: something analogous to a multi-format logical . . .

Is there something that can be done in SQL, that would effectively make
a bunch of instances of the same file, in several different libraries,
look like a single file?

Case in point: a user enrollment file, associated with an instance of an
application.

--
JHHL




This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].