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 Query to compress files in Mainframes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
naive

New User


Joined: 26 Apr 2005
Posts: 46
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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, 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: 46
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: 4648
Location: Raleigh, 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: 46
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: 4648
Location: Raleigh, 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
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 Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts Are there any Freeware utilties for i... johnmull IBM Tools 2 Wed Dec 21, 2016 8:29 am
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm


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