Yes, UNION ALL clause.
CREATE VIEW QTEMP/ALLFILES AS
(SELECT * FROM lib1/FILEA
SELECT * FROM lib2/FILEA
SELECT * FROM lib3/FILEA)
Now query the QTEMP/ALLFILES view or read it sequentially using RLA.
Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
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
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