You can do this on RDi, and with the iSphere plugin, it is even easier to specify. Now, that is a manual process, but I use it all the time.
There is also a compare_file table function since 7.4 that you can use, there is a parameter to specify the 2nd RDB, which lets you point to a different system
From: Maria <mlstoppa@xxxxxxxxx>
To: Midrange <midrange-l@xxxxxxxxxxxxxxxxxx>
Date: Thursday, 11 August 2022 3:51 PM CDT
Subject: Re: Is there a way to compare files on different systems using SQL ?
Hi Darryl ,
That's an intriguing question.
Unfortunately, I don't have a solution ready to use, but that's my 5 cents.
Recently I had to compare PF and LF record formats to ensure they match
their sources; objects and source members were on the same system.
To do this I created a program that gets the object definition directly
from the system catalog, then creates in QTEMP the same object from its
corresponding source file member, and finally, compares the first object
definition with that retrieved from the object in QTEMP. I used SQL to read
the system catalogs and to make comparisons.
But if you need to compare source members themselves it's useless.
To use an SQL procedure you need to connect one system to the other, using
the "CONNECT" statement, but then you need to read every single member and
AFAIK you should use the "ALIAS" concept, creating an alias for every
I was able to execute some SQL select statements connecting 2 different
systems addressing each table in the form rdbname.schema.table, but I know
little about which conditions this method works under.
If you don't disregard other than SQL, why don't you use FTP to transfer a
source member from one system to the other, and then make the comparison on
one of the 2 systems, deleting the copied source member (or the whole file)
at the end of the process?
I am sure others on the mailing list will come up with more interesting
Il giorno gio 11 ago 2022 alle ore 21:57 a4g atl <a4ginatl2@xxxxxxxxx> ha
I need to compare source members on 2 systems, a production and development
I want to create a procedure to compare the source.
I tried setting up a DDM file, but source compare does not work using DDM.
Hopefully, I will not have to invent the wheel.
TIA, Darryl Freinkel.
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,
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
Help support midrange.com by shopping at amazon.com with our affiliate
As an Amazon Associate we earn from qualifying purchases.