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
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
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).