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

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

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to