× 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.



A sure way to tell if two files contain the same data is to calculate the hash (MD5, SHA, et) of each and compare them. You could do this via an API in RPG:
https://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/apis/qc3calha.htm

or you could do it via PASE or QSHELL using the unix-like tools there:

http://iprodeveloper.com/application-development/sha1-md5-and-base64-without-apis

Or you could roll your own, since you don't really need a cryptographically secure hash, just one that's suitably unique.

- George

I believe CMPPFM?display that two files are different(even if two files are identical in terms of contents of the files)?if it finds >differences in timestamp fields.? My vendor sends a file everyday and it does not have date in it, I am only looking to compare the?>content of the files and if both are identical throw an alert.? I don't think?CMPPFM may work.


This message may contain confidential information and is intended only for the individual or individuals named. If you are not the named addressee you should not disseminate, distribute or copy this email. Please notify the sender immediately by e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message
is provided for informational purposes only.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.