I have SFTPed a file from Mainframe to Azure in ASCII Mode. I want to comapte the checksum of the Mainframe file against the file in Azure.How can I do that?
- I can calcualte the SHA256 of a File in MF in Binary mode i.e. the data is in CP1047.
- Have SFTP the file to MF on Azure. Can calcualte the SHA256 in ASCII mode but it doesn't match the SHA256 of the file in Mainframe.
How can I calcualte the SHA256 in Azure using pyhron databricks notebook in binary mode that will match the SHA256 of Mainframe?
Since the file is converted from CP1047 to ASCII there is no way to compare the two. An alternate workflow would be to
On the mainframe:
iconv.In Azure: