Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Join Logical

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
Is there a way to create the equivalent of a UNION ALL logical on the AS400?

In SQL I have created a LF as:

CREATE VIEW MyLib/MyFile AS
SELECT blah blah
FROM LIBRARY1/FILE1
UNION ALL
SELECT blah blah
FROM LIBRARY2/FILE1

It creates a logical file.
Is there a way to do this so I have a QDDSSRC source file?





Dazed and confused
(N+, MCAD)
 
Yes : JOIN FILE though SQL's my preference by far.
A join logical file is a logical file that combines (in one record format) fields from two or more physical files.
Check out "Basic concepts of joining two physical files" at IBM site :
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top