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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Omegamon for DB2 query ashek15 DB2 0 Wed Feb 15, 2017 11:25 am
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm


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