I am definitely going to propose this.  I don't know what encryption is being 
used, but if available this seems to make the most sense.  I sense wariness 
about doing anything "new" on the mainframe, but it just seems to make the most 
sense.

We'll see how it goes!

Frank

________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
Kirk Wolf <k...@dovetail.com>
Sent: Friday, June 23, 2017 2:15 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: EBCDIC, ASCII, ugh

You could do it all on z/OS, assuming that you have the encryption program
there that you want.  Many are available.

For example, using our Co:Z Toolkit it would be something like:

//SHELL EXEC PGM=COZBATCH,  # a better BPXBATCH
//           PARM='/ IDSN=HLQ.MY.DSN'
//ENCRYPT  DD DISP=(NEW,CATALOG,DELETE),SPACE=(..),
//            DCB=(RECFM=U,BLKSIZE=27998),
//            DSN=...
//STDIN  DD *

# first get a checksum hash of the EBCDIC data.
#   see the z/OS Unix cksum doc for more information and options
fromdsn -b $IDSN |
    cksum > cksum.txt

# convert to ascii using your favorite encoding, preserving trailing record
# spaces, using newline terminators.
# Pipe the output into your encryption program (or directly to a file
# and encrypt in a separate step)
set -o pipecurrent
fromdsn -k -l nl -s IBM-1047 -t ISO8859-1 $IDSN  |
    my-encrypt-program  |
    todsn -b //DD:ENCRYPT
//

Kirk Wolf
Dovetailed Technologes
http://dovetail.com
Dovetailed Technologies, LLC<http://dovetail.com/>
dovetail.com
The Co:Z Co-Processing Toolkit is a collection of tools for connecting z/OS 
platforms to other computing environments securely and reliably.



Co:Z Toolkit is available free under our Community License.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to