STRQSH CMD('cd /directory1/sub-directory2/sub-directory3/sub-directory4/sub-directory5/ && jar cfM 20210216_141530_BOL.zip *.pdf')
?
-------- Original Message --------
Subject : Problem with compressing a number of pdf's into a zip file
From : Alan Shore via MIDRANGE-L midrange-l@xxxxxxxxxxxxxxxxxx
To : "midrange-l@xxxxxxxxxxxxxxxxxx" <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc : Alan Shore <ashore@xxxxxxxx>
Date : Tuesday, February 16, 2021 22:35
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
'If you're going through hell, keep going.'
Winston Churchill
The Nature’s Bounty Co. is now The Bountiful Company! Our email address will be changing from @nbty.com to @bountifulcompany.com. Please update your email address book so that important communications are not interrupted.
As an Amazon Associate we earn from qualifying purchases.
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.