Solved

AS/400 - Joining 5 PF in a Logical File

Posted on 2004-08-03
3
2,098 Views
Last Modified: 2010-10-05
AS/400 Logicals Question:

I have five PF that I want to join and they all contain a key! When I join them I only get the records that match in all of the files instead of all records whether there is a match or not.
I.e. The first file has the employees personal information such as name, age. The second file has the employees first address, the third file has the employees second address etc...
When these files are joined, if the employee doesn't have a record in the second, third, fourth or fifth file, the results are not returned for that employee even though they exist in the first file.

Does anyone know how to get around this? I have no other choice but to create a logical!!

Thanks.
0
Comment
Question by:viselli
3 Comments
 
LVL 3

Expert Comment

by:Mind_nl
ID: 11712787
How did you make the logical? An easy way to do this would be to make view. Open up iSeries Navigator and goto the database part in it. if you right click on a library you can create a new view. It is created like we are used to in MS access by selecting tables and dragging fields from one table to the other to specify the join. Here you would select a left-outer-join (select all rows in the left table and only those in the right table where the join is true)
0
 
LVL 1

Accepted Solution

by:
SuperCCA earned 50 total points
ID: 11713753
The DDS keyword you need is JDFTVAL.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now