IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PKZIP Dynamic Password generation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Geetha B

New User


Joined: 24 Nov 2007
Posts: 12
Location: chennai

PostPosted: Thu Sep 16, 2010 1:39 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Sep 16, 2010 2:49 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Sep 16, 2010 3:09 pm
Reply with quote

Errrrrrr, why not let RACF do the work to protect the dataset(s)
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Sep 16, 2010 3:15 pm
Reply with quote

Hello expat,

i guess the file is zipped to be FTP'ed to some location.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Sep 16, 2010 3:24 pm
Reply with quote

That may be, but why duplicate effort. Surely if the two security teams collaberate where is the problem ?
Back to top
View user's profile Send private message
Geetha B

New User


Joined: 24 Nov 2007
Posts: 12
Location: chennai

PostPosted: Thu Sep 16, 2010 3:25 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top