Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ZIP for AS/400

540 views
Skip to first unread message

Peter Sawatzki

unread,
Jan 19, 2002, 6:05:55 AM1/19/02
to
Is there a *free* ZIP utility available for the AS/400 ? I know that I
can create jar files with AS/400 jar from QSH or CL by starting QSH with
a command line, but this is not a native solution as it invokes Java and
I have the feeling that this is slow (although it is a working
solution).

OTOH as gzip is available for AS/400 but the format is not compatible
with zip, is it possible to make a zip file from a .gz file? For my
requirements it is only necessary that the zip file contains one single
compressed file.

Peter

Daniel Gross

unread,
Jan 19, 2002, 10:26:13 AM1/19/02
to
Hi Peter!

Peter Sawatzki <Pe...@Sawatzki.de> wrote:

> Is there a *free* ZIP utility available for the AS/400 ? I know that I
> can create jar files with AS/400 jar from QSH or CL by starting QSH with
> a command line, but this is not a native solution as it invokes Java and
> I have the feeling that this is slow (although it is a working
> solution).

AFAIK ... there is not *free* ZIP util.

> OTOH as gzip is available for AS/400 but the format is not compatible
> with zip, is it possible to make a zip file from a .gz file? For my
> requirements it is only necessary that the zip file contains one single
> compressed file.

Well ... I you GZIP quite often ... it's easy, fast, and every WinZIP user
can open the GZIP file without any problem. And if you need a command line
util, there are also GZIP ports for Windows, VMS, ... and of course all *nix
clones.

HTH and Bye
Daniel

Tim M

unread,
Jan 19, 2002, 11:13:39 AM1/19/02
to
There is a PKZIP program available for AS/400 and I believe TrailBlazer
resells it. *BUT* it does not operate in the IFS, instead it uses database
file members, so you must somehow get the contents to and from the file
member in order to make PKZIP work with it. This is not a trivial task and
is somewhat prone to error.

"Peter Sawatzki" <Pe...@Sawatzki.de> wrote in message
news:MPG.16b371667...@news.btx.dtag.de...

Peter Sawatzki

unread,
Jan 19, 2002, 11:43:47 AM1/19/02
to
Daniel,

I was aware of for example winzip beeing able to read gzip files. The
problem is that the files I intend to make will be sent via EMail
directly from the AS/400 to many clients and certainly most of them will
be able to unpack .gz files with WinZip, but I was searching for a more
general solution. Browsing through the gzip sources one can find a "-k"
parameter that is disabled but commented with "force PKZIP compatible
output", so I thought maybe someone has completed this work already.

Thanks

Peter

In article <a2c36l$lc0$07$1...@news.t-online.com>, dgr...@gmx.net says...

Dan Hicks

unread,
Jan 19, 2002, 6:06:36 PM1/19/02
to

FWIW, most of the actual zip logic in Java is written in C. Not that
Java is that inefficient -- it's mainly the startup cost that will hurt.

--
Dan Hicks
Live a balanced life - Learn some and think some, and draw and paint and
sing and dance and play and work every day some. --Robert Fulghum

Kjetil Larsen

unread,
Jan 19, 2002, 7:05:50 PM1/19/02
to
What about GZIP for AS/400? Goto http://www.gzip.org


"Daniel Gross" <dgr...@gmx.net> wrote in message
news:a2c36l$lc0$07$1...@news.t-online.com...

Stig Norre

unread,
Jan 20, 2002, 5:19:02 AM1/20/02
to
You could try www.ddk-software.dk - they sell PKZIP for OS/400.

Regards
Stig

www.at400.dk

On Sat, 19 Jan 2002 12:05:55 +0100, Peter Sawatzki <Pe...@Sawatzki.de>
wrote:

Best regards

Stig Norre
System Consultant

Peter Sawatzki

unread,
Jan 20, 2002, 5:46:16 AM1/20/02
to
GZIP is o.k. (I use it) but it is not a pkzip file that is created with
it.

Peter

In article <yRn28.2246$dx.4...@news2.ulv.nextra.no>, NO-kjetil.SPAM-
lar...@as.online.no says...

Peter Sawatzki

unread,
Jan 20, 2002, 7:36:55 AM1/20/02
to
pkzip AS/400 costs a lot of money, I think.

OTOH I just found a link on IBM's website to zlib (this is the library
that is used in info-zip und gzip) and there seems to be a port of zlib
for AS/400 that also contains minizip and miniunzip, this is just what I
was looking for. The IBM website that links to it is

http://www.as400.ibm.com/developer/factory/porting/faq_ile.html

and the zlib/AS/400 website mentioned there is

http://homepage1.nifty.com/uzaemon/#download

But one has to recompile this with ILEC. I will try this.

I guess the minunzip/minizip variants are the versions form winimage.com

http://www.winimage.com/zLibDll/unzip.html

In article <3c4a9991...@news.tele.dk>, st...@at400.dk says...

Peter Sawatzki

unread,
Jan 20, 2002, 3:49:09 PM1/20/02
to
And here is the description of minizip:

zip
You can zip (compress) files by program 'minizip'. Call the program
without parameter to show usage.
> CALL PGM(MINIZIP)
Usage : minizip [-o] file.zip [files_to_add]
If you want to compress multiple files, list them after zip file name.
To overwrite existing zip file, specify '-o'. Extention (.zip) of zip
file is optional.
> CALL PGM(MINIZIP) PARM('-o' '/tmp/test' '/tmp/2847.txt' '/tmp/2849.txt')
creating /tmp/test.zip

Peter

In article <MPG.16b4d83f9...@news.btx.dtag.de>,
Pe...@Sawatzki.de says...

Peter Sawatzki

unread,
Jan 21, 2002, 4:43:54 PM1/21/02
to
And I recompiled it (minizip) and it works.

Peter

In article <MPG.16b4d8bd5...@news.btx.dtag.de>,
Pe...@Sawatzki.de says...

Daniel Gross

unread,
Jan 21, 2002, 5:31:11 PM1/21/02
to
Hi Peter!

Peter Sawatzki <Pe...@Sawatzki.de> wrote:


> will be able to unpack .gz files with WinZip, but I was searching for a
> more general solution. Browsing through the gzip sources one can find a

OK - but GZIP is GNU FreeWare (or more up-to-date Opensource Software) - so
why are you searching for a "more general" solution - freeware ist the most
general solution for this problem.

Bye
Daniel

Peter Sawatzki

unread,
Jan 22, 2002, 5:10:52 PM1/22/02
to
Daniel,

I was searching for a solution that all my clients can read. Zip is the
standard, not .gz, period. I finally found in the minizip exactly what I
was looking for: a simple zip program that is free and works on the
AS/400.

Thanks for your thoughts,

Peter

In article <a2i4rf$hr0$05$1...@news.t-online.com>, dgr...@gmx.net says...

0 new messages