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
 

 

Giving file names to files in ZIP file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
raj_mainframe08

New User


Joined: 11 Sep 2007
Posts: 65
Location: Gurgaon

PostPosted: Sat Jun 12, 2010 7:51 pm    Post subject: Giving file names to files in ZIP file
Reply with quote

I am using the below JCL step to zip 2 files in a single zip file. I am able to achieve that using below steps. My query is - Is there some way we can provide the names to the compressed files in zip for example when i open the zip file, i should see 2 files with names TESTF1 and TESTF2. Hope i have explained my requirements clear enough

Code:

//PKZIP07  EXEC PGM=PKZIP,REGION=0M,TIME=(50,00)         
//INFILA   DD DSN=SS5482.G5482.S5482DWE.DATA,DISP=SHR   
//INFILB   DD DSN=SS5482.G5482.S5482DWF.DATA,DISP=SHR   
//*                                                     
//OUTFILE  DD DSN=SS5482.G5482.S5482DWE.DATA.ZIP,DISP=SHR
//*                                                     
//SYSIN    DD *                                         
 -INDD(INFILA)                                           
 -INDD(INFILB)                                           
 -ARCHOUTDD(OUTFILE)                                     
 -METHOD(SUPERFAST)       
/*                             
//*                                                     
//SYSPRINT DD SYSOUT=(,)                                 
//SYSOUT   DD SYSOUT=(,)                                 
//SYSUDUMP DD SYSOUT=(,)
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Sat Jun 12, 2010 8:46 pm    Post subject: Re: Giving file names to files in ZIP file
Reply with quote

raj_mainframe08 wrote:
Is there some way we can provide the names to the compressed files in zip


Yes. Look in the manual - the parameter is something like -NIA or –ZIPPED_DSN.

Quote:

–ZIPPED_DSN
Synonyms Include: –NIA

The –ZIPPED_DSN command specifies one or more MVS file names and how they are to be renamed for the associated ZIP file. More than one file may be referenced in one command by the use of wildcard characters. The default depends on the MVS file type and other situations as outlined below.

–ZIPPED_DSN(<MVS name>,<Archive name>)

MVS name - This is one entry representing one or more MVS file names. The maximum character length is 54 characters. Spaces are not valid. Wild characters (“*”) may be used here for two purposes. One, the character is used to identify more than one file. <MVS name> = MYFILE.NEW* will represent MYFILE.NEW1, MYFILE.NEW2, MYFILE.NEW3, and so on. The second purpose is to identify what part of the <MVS name> is to be used in the <Archive name>. A matching wild character in the <Archive name> indicates the corresponding part of the <MVS name> is duplicated in the <Archive name>. See the table below for examples.

Archive name - This is the format for the associated ZIP file name(s).
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


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