× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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

[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



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 thread ...

Replies:

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.