View previous topic :: View next topic
|
Author |
Message |
Geetha B
New User
Joined: 24 Nov 2007 Posts: 12 Location: chennai
|
|
|
|
Hi,
I need to Zip a file and password protect it daily.I am currently doing it with the below job
Code: |
//PKZIP01 EXEC PGM=PKZIP
//INFILE DD DSN=INPUT FILE,
// DISP=SHR
//OUTFILE DD DSN=OUTPUT FILE.
// DISP=(NEW,CATLG,DELETE),
// LRECL=132,
// DATACLAS=DATAF
//SYSIN DD *
-ECHO
-ACTION(ADD)
-ARCHIVE_OUTDD(OUTFILE)
-COMPRESSION_LEVEL(MAXIMUM)
-PASSWORD(COL0916)
-DATA_TYPE(TEXT)
-INFILE_DD(INFILE)
-ZIPPED_DSN(*,SFILE.TXT)
/*
//* |
I need to generate the password dynamically It should be like COl and the curr month and date.
Please let me know how to go about this requirement.
Thanks,
Geetha |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
One method would be to use the Symbolic Variable translator utility:
Code: |
//STEP0001 EXEC PGM=EZACFSM1
//SYSIN DD *
-PASSWORD(COL&LMON&DAY)
/*
//SYSOUT DD DSN=&&TEMP,DISP=(,PASS),RECFM=FB,LRECL=80,...
//*
|
or other utilities/programs like SORT, REXX, CLIST, etc. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Errrrrrr, why not let RACF do the work to protect the dataset(s) |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Hello expat,
i guess the file is zipped to be FTP'ed to some location. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
That may be, but why duplicate effort. Surely if the two security teams collaberate where is the problem ? |
|
Back to top |
|
|
Geetha B
New User
Joined: 24 Nov 2007 Posts: 12 Location: chennai
|
|
|
|
Hi,
The zipped file in the next step will be sent via mail.Thats why we need to generate the password and mail the same.
Thanks SuperK I was able to apply your solution for my purpose.
Thanks,
Geetha |
|
Back to top |
|
|
|