Solved

AS/400 - Joining 5 PF in a Logical File

Posted on 2004-08-03
3
2,119 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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