Eric;

Actually, it is not the PKware product rather Transfer Anywhere.  We
use it for handling our SFTP and FTPS tranfers. It has the utility
included for ftp compression.  

Still, I like this jar cmd and will definitely be playing around with
it.

Thanks
Charlie

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

Just for future reference, if you did not have the PKWARE product
loaded, then you could still have created your .zip files using the jar
command in QShell.  While you're playing with the rm command, you might
want to play with jar too....

jar cfM /test1/test1.zip /test1/*.*

jar

Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...

Options:

    -c  create new archive

    -t  list table of contents for archive

    -x  extract named (or all) files from archive

    -u  update existing archive

    -v  generate verbose output on standard output

    -f  specify archive file name

    -m  include manifest information from specified manifest file

    -0  store only; use no ZIP compression

    -M  do not create a manifest file for the entries

    -i  generate index information for the specified jar files

    -C  change to the specified directory and include the following file

If any file is a directory then it is processed recursively.

The manifest file name and the archive file name needs to be specified

in the same order the 'm' and 'f' flags are specified.

 

Example 1: to archive two class files into an archive called
classes.jar: 
       jar cvf classes.jar Foo.class Bar.class

Example 2: use an existing manifest file 'mymanifest' and archive all
the 
           files in the foo/ directory into 'classes.jar':

       jar cvfm classes.jar mymanifest -C foo/ .

  


Eric DeLong
Sally Beauty Company
MIS-Project Manager (BSG)
940-297-2863 or ext. 1863



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