09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

REPROvvvvREUSE indicates that the target data set is to be opened as a reusable data set. Ifthe data set was defined as REUSE, it is reset to empty; otherwise, the REPROcommand will end.ENCIPHER indicates that the target data set is to contain an enciphered copy ofthe source data set.PRIVATEKEY indicates that the key is to be managed by the user.DATAKEYFILE points to the KEYIN DD statement that supplies the plaintextdata encrypting key, X'53467568503A7C29', to be used to encipher the data.Decipher Using Private Keys: Example 10In this example, the enciphered data set produced by the job in Encipher UsingPrivate Keys: Example 9 is deciphered at the same location, using anentry-sequenced data set as the target <strong>for</strong> the plaintext (deciphered) data. Keys aremanaged privately by the user.//DEPRI JOB ...//STEP1 EXEC PGM=IDCAMS//CRYPT DD DSN=ESDS1,DISP=OLD//CLEAR DD DSN=ESDS3,DISP=OLD//SYSPRINT DD SYSOUT=A//SYSIN DD *REPRO -INFILE(CRYPT) -OUTFILE(CLEAR) -DECIPHER -(DATAKEYVALUE(X’53467568503A7C29’))/*Job control language statements:v CRYPT DD describes the enciphered source entry-sequenced data set.v CLEAR DD describes the target entry-sequenced data set.The REPRO command copies and deciphers the enciphered data set from thesource data set, ESDS1, to the target data set, ESDS3. The supplied plaintext dataencrypting key is used to decipher the data. The parameters of the REPROcommand are:vvvvINFILE points to the CRYPT DD statement identifying the source data set,ESDS1.OUTFILE points to the CLEAR DD statement, identifying the target data set,ESDS3, which must be empty. The defined maximum record size of the targetentry-sequenced data set must be large enough to accommodate the largestsource entry-sequenced data set record.DECIPHER indicates that the source data set is to be deciphered as it is copiedto the target data set.DATAKEYVALUE indicates that keys are to be managed by the user, andsupplies the plaintext private data encrypting key, X'53467568503A7C29', used toencipher the data.326 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!