The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact firstname.lastname@example.org.
select distinct CUSKEY, CUSCOD, count(*)
group by CUSKEY, CUSCOD
having count(*) > 1
If you get records, then not one-to-one.
Hah.... First line of code I've written in the last almost 8 months. Hope it works <grin>
COMMON Certified Application Developer - ILE RPG on IBM i on Power
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of James H. H. Lampert via MIDRANGE-L
Sent: Friday, August 19, 2022 4:22 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx>
Subject: Verifying a one-to-one relationship between two fields
I have a non-keyed PF, with some 44k records. There are two fields,
CUSKEY and CUSCOD, neither of which is a unique key to the file. I
suspect that there is a one-to-one relationship. Can somebody suggest
the easiest possible way to verify this?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.