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

Giving file names to files in ZIP file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Sat Jun 12, 2010 8:46 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top