Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PKZIP Dynamic Password generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: PKZIP Dynamic Password generation
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

Moderator Team Head


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

PostPosted: Thu Sep 16, 2010 2:49 pm    Post subject: Reply to: PKZIP Dynamic Password generation
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 16, 2010 3:09 pm    Post subject:
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Thu Sep 16, 2010 3:15 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 16, 2010 3:24 pm    Post subject:
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    Post subject: Reply to: PKZIP Dynamic Password generation
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us