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

PKZIP Query to compress files in Mainframes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri May 20, 2005 7:53 am
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
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

Global Moderator


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

PostPosted: Fri May 20, 2005 8:42 pm
Reply with quote

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

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

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

PKZIP MVS 5.6 Users Guide: 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
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

Global Moderator


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

PostPosted: Fri May 20, 2005 11:44 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts SH256/MD5 Checksum in Mainframes JCL JCL & VSAM 14
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top