View previous topic :: View next topic
|
Author |
Message |
naive
New User
Joined: 26 Apr 2005 Posts: 46 Location: LA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
naive
New User
Joined: 26 Apr 2005 Posts: 46 Location: LA
|
|
|
|
Thanx a lot!!! Will try it out tomorrow!!!!Hopefully this will do it... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
naive
New User
Joined: 26 Apr 2005 Posts: 46 Location: LA
|
|
|
|
THANK YOU FOR THE MANUAL! BTW, TRIED UR SUGGESTION, IT WORKED PERFECTLY!! THANX! |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|