Check out the 7zip commands delivered with Open Source Package Management.

There may be an option with that.

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------

message: 4
date: Tue, 16 Feb 2021 19:35:19 +0000
from: Alan Shore via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: Problem with compressing a number of pdf's into a zip file

Hi everyone,
We are on V7r3

We have a number of pdf's located in an ifs directory, specified in the following manner /directory1/sub-directory2/sub-directory3/subdirectory4/subdirectory5/*.pdf

I have tried using the command CPYTOARCF as well as the QSH jar command The zip file is created, but when we transmit the zip file to another system, they have problems because of the number of directories/sub-direcories Is there a way to compress the pdf's WITHOUT capturing the directory information - just all the pdf's


The jar command is
STRQSH CMD('jar cfM /directory1/sub-directory2/sub-directory3/sub-directory4/sub-directoryZ/20210216_141530_BOL.zip /directory1/sub-directory2/sub-directory3/subdirectory4/subdirectory5/*.pdf')

The COPYTOARCF command is
CPYTOARCF FROMFILE('/directory1/sub-directory2/sub-directory3/subdirectory4/subdirectory5/') TOARCF('/directory1/sub-directory2/sub-directory3/sub-directory4/sub-directoryZ/20210216_141530_BOL.zip')

I hope that this makes sense
As always - all answers gratefully accepted
'
Alan Shore
Solutions Architect
IT Supply Chain Execution

[cid:image002.png@01D70470.F241DD50]

60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx

'If you're going through hell, keep going.'
Winston Churchill


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.