Solved

AS/400 - Joining 5 PF in a Logical File

Posted on 2004-08-03
3
2,135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
Part One of the two-part Q&A series with MalwareTech.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

630 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