Solved

AS/400 - Joining 5 PF in a Logical File

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Programmer 26 540
"Estimated" pages on a spooled file 5 253
Installing a Printer on AS400 5 177
Problem with a LIKE clause  with a "*" inside in VB.Net accessing a DB2/400 table 7 89
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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