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



Cool.  I was wondering if you were using the jar command in Qshell to
zip with.  It's free and easy to access (QSH CMD(jar -c -f
'/storagedir/mynewzipfile.zip -C '/mydir' file1.txt file2.txt file3.txt)

The syntax may not be 100% spot on there, but you can start a qshell
session on you're AS/400 by typing in QSH at any command line and
pressing ENTER.  Then type in  jar /?  On the blank line in the QShell
session to see the format of the command.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charlie Randall
Sent: Wednesday, September 27, 2006 9:18 AM
To: Midrange Systems Technical Discussion
Subject: RE: Mass Delete from IFS folder

Shannon;

    I am using a QCMDEXC call to a ZIP command that is part of a vendor
product we have. Command from a Prompt looks like this:

ZIP SOURCE('/test1/*.*') DEST('/test1/test1.zip') INCSUBDIR(*YES)
FULLPATH(*YES) COMPRESS(*MAX)

Charlie

-----Original Message-----
From: midrange-l-bounces+crandall=aaacooper.com@xxxxxxxxxxxx
[mailto:midrange-l-bounces+crandall=aaacooper.com@xxxxxxxxxxxx] On
Behalf Of Shannon O'Donnell
Sent: Wednesday, September 27, 2006 8:48 AM
To: Midrange Systems Technical Discussion
Subject: RE: Mass Delete from IFS folder

How are you zipping the files in the IFS from your RPG program?

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charlie Randall
Sent: Wednesday, September 27, 2006 8:37 AM
To: Midrange Systems Technical Discussion
Subject: Mass Delete from IFS folder

I am working on developing a RPG Application that will load an IFS
folder with image files.  Then it will zip up all the files into a zip
file.  This part is working fine.  However, this will be a nightly
process and I would like to clear the folder before loading and zipping
again.  So, is there a global command to delete all files in an IFS
folder that can be used in an RPG ILE or RPG Free Application?  Instead
of deleting them one by one.

Thanks,
Charlie



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.