|
Why use CMPPFM when SQL can compare the data? The SQL can easily
ignore the /key/ column and compare all of the row data as a SET; see a
very recent message from a somewhat recent thread about /comparing/
using the EXCEPT in a UNION.
Vern Hamberg on Thursday, May 02, 2013 12:35 PM wrote:
Didn't he ask how to remove just the UNIQUE attribute?
Yes that is correct; I would PREFER to remove the UNIQUE attribute,
while leaving the field intact as a key.
If that were not possible, then I would accept dropping the field
and re-adding the field as a non-unique key.
Goal:
I am running a TEST pgm which outputs to a file, and also running
[almost the same version with a few small changes] PROD pgm.
I want to run CMPPFM but the key field (which is an incrementing
seq#) is one-off at times.
I thought an easy solution would be to clear that seq# prior to
CMPPFM, but the UNIQUE constraint won't allow that.
If I can SQL ALTER the field to remove the UNIQUE constraint, then
set all keys to zero,
then I could compare the TEST vs PROD versions
of the file using CMPPFM.
As an Amazon Associate we earn from qualifying purchases.
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.