Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
PKZIP Query to compress files in Mainframes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
naive

New User


Joined: 26 Apr 2005
Posts: 47
Location: LA

PostPosted: Fri May 20, 2005 4:48 am    Post subject: PKZIP Query to compress files in Mainframes
Reply with quote

We are using PKZIP to compress files in m/f. The trouble is we cant seem to control the name of the file in the zip archive. Its is defaulting to the last qualifier of the original input ds. Eg: Source file : abcd.efgh.ijkl,
archive file : abcd.efgh.ijkl.zip, but the file inside the archive : ijkl.
Can we control this name?
Back to top
View user's profile Send private message
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Fri May 20, 2005 7:53 am    Post subject: Re: PKZIP Query
Reply with quote

The usual parameter is -ZIPPED_DSN:
Code:

//SYSIN DD *
-ECHO(Y)
-ACTION(ADD)
-ARCHIVE_OUTFILE(DDName)
-COMPRESSION_LEVEL(MAXIMUM)
-CRLF(Y)
-DATA_DELIMITER(CRLF)
-DATA_TYPE(TEXT)
-FILE_TERMINATOR(CRLFCZ)
...
-ZIPPED_DSN(**,zipfile.name) <== filename
/*
Back to top
View user's profile Send private message
naive

New User


Joined: 26 Apr 2005
Posts: 47
Location: LA

PostPosted: Fri May 20, 2005 11:19 am    Post subject: Re: PKZIP Query
Reply with quote

Thanx a lot!!! Will try it out tomorrow!!!!Hopefully this will do it...
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Fri May 20, 2005 8:42 pm    Post subject: Re: PKZIP Query
Reply with quote

You should probably get a copy of the appropriate product manual:

PKZIP MVS 5.0 Users Guide: http://www.pkware.com/support/manuals/pdf/pkmu-v5r0000.pdf

PKZIP MVS 5.5 Users Guide: http://download.pkzip.com/pub/pkware/manuals/zseries/PKMU-V5R5000.pdf

PKZIP MVS 5.6 Users Guide: http://download.pkzip.com/pub/pkware/manuals/zseries/pkzu-v5r6000.pdf
Back to top
View user's profile Send private message
naive

New User


Joined: 26 Apr 2005
Posts: 47
Location: LA

PostPosted: Fri May 20, 2005 11:09 pm    Post subject:
Reply with quote

THANK YOU FOR THE MANUAL! BTW, TRIED UR SUGGESTION, IT WORKED PERFECTLY!! THANX!
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Fri May 20, 2005 11:44 pm    Post subject: Re: PKZIP Query
Reply with quote

No problem-o!

Just a suggestion, but in the future, you might want to indicate the software product (i.e. PKZIP/MVS) and version number (i.e. 5.0, 5.5, or 5.6) of the product you are dealing with. It certainly helps others to offer the correct answer without having to go back and ask for that information anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1