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



Better yet use the QSHEXEC command to call your QShell and PASE apps and capture or ignore the app output from a CL or RPG application.

This allows RPG and CL to make friends with open source apps.

The main benefit of this wrapper is to be able to integrate Qshell/Pase applications on-the-fly with standard IBM i job streams.
https://github.com/richardschoen/QshOni

Looks almost the same as STRQSH:

QSHEXEC CMDLINE('cd /directory1/sub-directory2/sub-directory3/sub-directory4/sub-directory5/ && jar cfM 20210216_141530_BOL.zip *.pdf')

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
-------- Original Message --------
Subject : [External] RE: Problem with compressing a number of pdf's into a zip file
From : Alan Shore via MIDRANGE-L midrange-l@xxxxxxxxxxxxxxxxxx
To : Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc : Alan Shore <ashore@xxxxxxxx>
Date : Wednesday, February 17, 2021 17:27

Hi Jeff
Thanks for the reply
Believe it or not - I FINALLY found something with Google search, late last night and have just finished making changes to my SQLRPGLE program My tests show that it is working AND the zip file has NO directory, sub directories etc.
FANTASTIC
However, there is a but (isn't there always) Like I said - this is in my SQLRPGLE program When it reaches the command, it literally opens up a QSH session that I have to press Enter to come out of

Anyone know of a way to suppress that from within RPGLE?



Alan Shore
Solutions Architect
IT Supply Chain Execution

[cid:image001.png@01D7050F.0B670C30]

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

From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Barron, Jeff via MIDRANGE-L
Sent: Wednesday, February 17, 2021 9:19 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: Barron, Jeff <jeffbarron@xxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] RE: [External] RE: Problem with compressing a number of pdf's into a zip file

Alan,

Alexei's example below has worked well for me.

STRQSH CMD('cd /directory1/sub-directory2/sub-directory3/sub-directory4/sub-directory5/ && jar cfM 20210216_141530_BOL.zip *.pdf')

cd changes the directory (duh) and the && allows the jar command to run after the cd command. Voila, you've got a zip file that's not buried in directories.


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.