× 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 support@midrange.com.



Have you had a look at the VALIDATE_DATA_FILE Table Function within the
SYSTOOLS Schema?
https://www.ibm.com/docs/en/i/7.5?topic=us-validate-data-validate-data-file-
validate-data-library-table-functions

Otherwise you may run the following query ... if it does not return any row
both tables are identical:

(Select * from Table1
Except
Select * from Table2)
Union
(Select * From Table2
Except
Select * From Table1);


Mit freundlichen Grüßen / Best regards

Birgitta Hauser
Modernization ? Education ? Consulting on IBM i

IBM Champion since 2020

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
"Train people well enough so they can leave, treat them well enough so they
don't want to. " (Richard Branson)
"Learning is experience ? everything else is only information!" (Albert
Einstein)

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Andrew
Lopez (SXS US)
Sent: Tuesday, 20 June 2023 17:34
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Comparing Two Copies of a Physical File

I need to compare the results of two different programs, as stored in the
same physical file. I have saved copies of both iterations, but am trying
to figure out how to do a field level comparison based on a keyed record
join.

I'm trying to avoid an SQL with a select based on differences between fields
in the two files because there are 54 fields in the format.

TAATOOLs has a CMPDBF command, but it's an E1 file with null value fields.
In the case of nulls, I would want no comparison if both versions of the
field in question have null values.

Z/OS has a compare utility, but I can't find a match on the i. CMPPFM won't
work because the files are way too large.

Is there a way to do this without a massive SQL statement comparing at the
field level with 50 fields to compare for possible differences?


_____________________________________________________________________
Spirax-Sarco Engineering Plc. This e-mail has been scanned for viruses by
Cisco Cloud Email Security.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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 [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.