Thanks! I got it to run and now looking for the best way forward...P7 or this or something else. I've got Ted Holt's book and it helps but is there any other knowledge bases on QSH syntax that can run on iSeries?
-----Original Message-----
From: Luis Rodriguez <luisro58@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Thu, May 17, 2012 3:51 pm
Subject: Re: How to read the contents of a zip file without unzipping it?
Frank,
This works for me:
SBMJOB CMD(QSH CMD('ajar --list myzip.zip>list.txt'))
Check your home directory. Or specify the full path in your command:
SBMJOB CMD(QSH CMD('ajar --list myzip.zip>/mydir/list.txt'))
TH,
Luis Rodriguez
BM Certified Systems Expert — eServer i5 iSeries
-
n Thu, May 17, 2012 at 3:04 PM, <fbocch2595@xxxxxxx> wrote:
Thanks Folks, if I run the jar in batch it doesn't go to an outfile or
qprint, is that possible?
-----Original Message-----
From: Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Thu, May 17, 2012 2:07 pm
Subject: Re: How to read the contents of a zip file without unzipping it?
These can be run via QShell, and are alternatives (you only need one of
hem, not all of them)
With JAR:
jar -t httpapi.zip
With AJAR:
ajar -l httpapi.zip
With Info-Zip:
unzip -l httpapi.zip
With 7-Zip
7z l httpapi.zip
The last two (InfoZip/7-Zip) are not included with the system, but can
e installed for free in PASE. These last two options run the fastest,
y far, on my system. The 'jar' tool runs very, very slowly, on my
ystem (to the point where I find it nearly unusable)
These are run via the QShell interface, and can be run from a program
nd output to a file if desired. (You could then read the file to read
he contents into a program.)
You could also run them with my (open source) UNIXCMD tool to make it
asy to read into a program without any need for a temporary file.
ttp://www.scottklement.com/unixcmd
-SK
On 5/17/2012 9:56 AM, fbocch2595@xxxxxxx wrote:
Hi Folks, we get zip files from a biz partner containing 1000 files. We
want
o see a listing of these 1000 files without unzipping the zip. Is that
ossible? If so, how?
Thanks, Frank
--
his is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
o post a message email: MIDRANGE-L@xxxxxxxxxxxx
o subscribe, unsubscribe, or change list options,
isit:
http://lists.midrange.com/mailman/listinfo/midrange-l
r email: MIDRANGE-L-request@xxxxxxxxxxxx
efore posting, please take a moment to review the archives
t
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/midrange-l.
-
his is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
o post a message email: MIDRANGE-L@xxxxxxxxxxxx
o subscribe, unsubscribe, or change list options,
isit:
http://lists.midrange.com/mailman/listinfo/midrange-l
r email: MIDRANGE-L-request@xxxxxxxxxxxx
efore posting, please take a moment to review the archives
t
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.