Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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: 4650
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 query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Native SQL Query kishpra DB2 1 Wed Nov 22, 2017 8:38 pm
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us