473,721 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Defining additional keys in a joined logical file (DB2/400)

Hi.

I have two physical files on an iSeries (AS/400) box, from which I
would like to make a join logical file.

The files are in a master-detail setup, where the master table
contains:
- CompanyID
- ContractNo
- CustNo
- StartDate
- EndDate

The detail table contains:
- CompanyID
- ContractNo
- ArticleNo
- Price

I create a DDS source containing the relevant keywords such as JFILE,
JOIN, JFLD (for CompanyID and ContractNo) and list the fields of the
joined record.

My question is:
- I assume that the fields in JFLD automatically become keys; correct?
- How do I ensure, that CustNo is a 'key' in the joined file, so ex. a
SELECT is performed without severe performance penalties (JDUPSEQ is
only allowed for fields in the second table)?

Regards,

Mikkel Andersen

Jun 20 '06 #1
0 1538

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

100
9080
by: Peter | last post by:
Company thought DB2 will be better than Oracle. The bottom line is when you do select, the system crash. I think it may take 4-5 years for DB2 to reach Oracle standard. Peter
12
10885
by: Parking Meters | last post by:
Today I managed to get the OleDB provider to let me put datasets from an as400 using sql. Great, the provider string I used is: Provider=IBMDA400.DataSource.1;User ID=XXXXX;Password=XXXX;Data Source=nnn.nnn.nnn.nnn;"/> Question:
1
2661
by: Gina | last post by:
Hi everybody: I need some help to load in the as/400, a file with fields that have french characters . I have created a file with language = FRC and ccsid = 500 and also I have tried with ccsid = 297 but when I load the file , the french characters does not appear correctly. Please let me know what is missing? The file that I'm loading comes in a tape and I'm making a copy from tape to the file created with the above specifications.
4
5599
by: Scott Holland | last post by:
HELP - Need to connect to DB2 database on AIX from NT server. Also AS/400 from NT Server -- I am experienced in ORACLE and a novice at DB2. What tools would be the equivalent of Net*8 or SQLNET in ORACLE that would allow me to connect to a database on a remote box (either AIX or AS/400)? I have read that DB2 Connect appears to be the ticket for the Db2 server if it is on AS/400 or OS/390. What if it is on AIX? Does the same tool...
8
43114
by: VPaul | last post by:
Is there a web page out there like this one ... http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to test some SQL to a DB2? In particular to an AS/400. I am learning and find that the commands, fuctions etc are different than going to an Access DB on my home PC. Another thing I am looking for is there a way to simulate on my PC a DB2 so I can accomplish the same thing in testing SQL. Thanks
1
1596
by: dmeiser | last post by:
I need to write a query that returns the names of all queries in a library that start with the letters SC. I have not a clue how to even start something like this. If possible, the boss would like this done is QRY/400. Also, if anyone knows how to build a time machine so that I can have this done by when the boss called 15 minutes ago wanting to have it done by now, that would be great. Thanks for any help,
3
5997
by: zgh1970 | last post by:
Hi, All, We have a database on db2 udb aix. The database has federated server to db2 mainframe. Now We have already catalog database of db2/400 on the db2 UDB aix server. I tried to create new federation server for db2as/400. It seam has problem. 1. can the db2 mainframe and db/400 have the same wrapper? Our existing db2 mainframe uses the wrapper with library libdb2drda.a This wrapper is used by db2 mainframe
2
2107
by: Old Fossil Bama | last post by:
In DB2/400, if I run this statement: delete from ordvcrec a where not exists(select * from i$paint b where a.part#=b.i$part) Where ORDVCREC is a join logical of physical files ORDVALID and ORDMASCREC, will the rows being deleted be the "logical" rows from ORDVCREC only, or could physical rows (records) be wiped out in ORDVALID or ORDMASCREC? I am assuming that only logical rows will be deleted from ORDVCREC, but I am afraid to try...
1
2828
by: dif1754 | last post by:
My Windows DB2 Server 9.x is connected, via federation, to a remote AS/ 400 system: I created several nicknames to remote tables and I can query them. Problem is, during the night, my remote AS/400 is rebooted and DB2 Server cannot connect back to it. Is there any DB2 parameter I must set to reconnect automatically to the remote federated AS/400.
0
8840
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9131
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.