MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CHECKSUM for a file.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
tvssv
Beginner


Joined: 11 Mar 2009
Posts: 58
Topics: 25

PostPosted: Tue Aug 04, 2020 3:27 am    Post subject: CHECKSUM for a file. Reply with quote

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.
_________________
Thanks
TVSSV
Back to top
View user's profile Send private message
Robert Sample
Beginner


Joined: 15 Dec 2009
Posts: 12
Topics: 0
Location: Atlanta

PostPosted: Tue Aug 04, 2020 9:21 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12367
Topics: 75
Location: San Jose

PostPosted: Tue Aug 04, 2020 10:12 am    Post subject: Reply with quote

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
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group