CHECKSUM for a file.
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Utilities

#1: CHECKSUM for a file. Author: tvssv PostPosted: Tue Aug 04, 2020 3:27 am
    —
Is there any way to find CHECKSUM for a file in Mainframe. If it is available, could please let me know how to get CHECKSUM for a file.

Thank You.

#2:  Author: Robert SampleLocation: Atlanta PostPosted: Tue Aug 04, 2020 9:21 am
    —
If you're looking at a text file (or data set), you should be aware that the mainframe uses EBCDIC, which is a different collating sequence than ASCII and hence you CANNOT compare a checksum from a mainframe to a checksum from a Windows/Unix machine and expect them to match. Converting the EBCDIC to ASCII (or vice versa) before generating the checksum would be the only way to get them to match.

There was some discussion on another forum about six years ago and the conclusion was that there is NO native way on a mainframe to produce a checksum. The CBTTAPE (http://www.cbttape.org) has an MD5 checksum program on file 900 which can produce checksums on a mainframe, but you'd have to download it from the CBTTAPE organization -- which may be difficult in many companies.

#3:  Author: kolusuLocation: San Jose PostPosted: Tue Aug 04, 2020 10:12 am
    —
tvssv,

You can use z/OS Cryptographic Callable Services CSNBOWH to generate a one-way hash. Check this link. You can call this service from any of z/OS programming languages.

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.csfb400/owh.htm



MVSFORUMS.com -> Utilities


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group