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

Compress AS400 files

355 views
Skip to first unread message

Xavier JARDIN

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to
Hi,

I wish to send textual files AS400 (format CSV Excel) through e-mail
with Keyes Mail. The problem is the size of the files, on average a
sending made
3Mo whereas with WinZip on PC the size of the sending passes to
approximately
300Ko. Is it possible to compress starting from AS400 in a compatible
format
WinZip so that the recipient can uncompress the sending on his PC.

Xavier Jardin.

Bob Lepp

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to
I'm pretty sure PKZIP has an AS/400 product for compressing files.
Bob

Xavier JARDIN <xja...@sofice.fr> wrote in message
news:388DB55A...@sofice.fr...

Dieter Bender

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to
Hi Bob,
use the java tool jar, it is part of the Java JDK on AS/400.
Dieter Bender

Thomas Raddatz

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to Xavier JARDIN
Xavier,

you may contact "menten EDV - Beratung" at http://www.menten-gmbh.de/.

They offer a tool named "gzip400" which may meet your requirements. Their
internet site is in English.

Thomas Raddatz, Germany.

Xavier JARDIN schrieb:


>
> Hi,
>
> I wish to send textual files AS400 (format CSV Excel) through e-mail
> with Keyes Mail. The problem is the size of the files, on average a
> sending made
> 3Mo whereas with WinZip on PC the size of the sending passes to
> approximately
> 300Ko. Is it possible to compress starting from AS400 in a compatible
> format
> WinZip so that the recipient can uncompress the sending on his PC.
>
> Xavier Jardin.

--
*=====================================================*

e-mail Adresse:
Thomas....@Online-Club.de

Homepage:
http://www.online-club.de/~Thomas.Raddatz/

*=====================================================*

René van der Gracht

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to
Bob,

There is a PKZIP for the AS/400. We are using it. When I'll be back in the
office I will
give you (all) more information.

gr.

René


Bob Lepp wrote:

> I'm pretty sure PKZIP has an AS/400 product for compressing files.
> Bob
>
> Xavier JARDIN <xja...@sofice.fr> wrote in message
> news:388DB55A...@sofice.fr...

Frank Healy

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to
René:

I recently downloaded the software and it looks like it doesn't work
with the IFS. Is this right?

Frank

Larry Loen

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to Xavier JARDIN
Xavier JARDIN wrote:
>
> Hi,
>
> I wish to send textual files AS400 (format CSV Excel) through e-mail
> with Keyes Mail. The problem is the size of the files, on average a
> sending made
> 3Mo whereas with WinZip on PC the size of the sending passes to
> approximately
> 300Ko. Is it possible to compress starting from AS400 in a compatible
> format
> WinZip so that the recipient can uncompress the sending on his PC.
>
> Xavier Jardin.

If you've installed Java (product JV1)
and the QShell (BOSS option), you should have the
ability to do this:

To zip try:

cd /yourdir
jar -cfM yourzip.zip *.txt

or whatever you need for a "file filter."

To see what you've got try:

jar -tf yourzip.zip

To extract, try:

jar -xf yourzip.zip

I uploaded a zip file created with the "to zip"
directions above and my PKZIP on my PC had no
trouble handling it. The options as I have
it seem to recurse directories, so everything
"under" /yourdir would be zipped and unzipped.

Joel Eikenhorst

unread,
Jan 26, 2000, 3:00:00 AM1/26/00
to
Gzip and gunzip are the GNU utilities from the Free software
Foundation. You can request a copy that has been ported to the AS/400
from IBM's Partners in Developmet (PID) website:
http://www.as400.ibm.com/developer/porting/faq.html

H. Sterken

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to
After reading this message I'm trying to use the jar-cmd on my V4R3-system,
but when I enter the following commands in QSHELL:
cd /
cd QDLS
cd HSTER
jar -cfM testjar.zip *.*
I get the following errors:
java.io.FileNotFoundException: 24091999.Y2K
java/io/FileInputStream.<init>(Ljava/lang/String;)V+34
(FileInputStream.java:55)
java/io/FileInputStream.<init>(Ljava/io/File;)V+5
(FileInputStream.java:75)

sun/tools/jar/Main.addFile(Ljava/util/zip/ZipOutputStream;Ljava/io/File;)V+181
(Main.java:301)

sun/tools/jar/Main.create(Ljava/io/OutputStream;[Ljava/lang/String;Lsun/tools/jar/Manifest;)V+104
(Main.java:258)
sun/tools/jar/Main.run([Ljava/lang/String;)Z+170 (Main.java:89)
sun/tools/jar/Main.main([Ljava/lang/String;)V+16 (Main.java:516)

The testjar.zip file is created with zero length. I've tried this in an
IFS-directory and get the same messages. Am I doing something wrong?

Henk Sterken
Unidek Bouwelementen


Larry Loen schreef:

> Xavier JARDIN wrote:
> >
> > Hi,
> >
> > I wish to send textual files AS400 (format CSV Excel) through e-mail
> > with Keyes Mail. The problem is the size of the files, on average a
> > sending made
> > 3Mo whereas with WinZip on PC the size of the sending passes to
> > approximately
> > 300Ko. Is it possible to compress starting from AS400 in a compatible
> > format
> > WinZip so that the recipient can uncompress the sending on his PC.
> >
> > Xavier Jardin.
>

terry_...@my-deja.com

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to
I got the same problem. The weird thing was, to me, that is says
java.io.FileNotFoundException: 24091999.Y2K. Uh... it must have found
the file to come up with that message.

I really want this to work since I can't convince anyone to buy PKZIP
for the AS/400.

In article <38903E5D...@unidek.nl>,


Sent via Deja.com http://www.deja.com/
Before you buy.

H. Sterken

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to
That's correct. The first file in /QDLS/HSTER is 24091999.Y2K.
So it finds the first file and than gives an FileNotFoundException.
I hope someone can shed some light on this.

terry_...@my-deja.com schreef:

Peter

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to
Works great for me

from the working directory
jar -cfM testjar1.zip *.*

from a specific directory
jar -cfM testjar2.zip /home/peter/temp/*.*

from the qdls
jar -cfM testjar3.zip /qdls/peter/temp/*.*

from qsys
jar -cfM testjar4.zip /qsys.lib/peter.lib/TEST.FILE/TEST.MBR

but I had no luck when I tried to zip a save file :-(

In the shell you can use
pwd - check working directory
cd - change working directory
ls - list working directory

/Peter


In article <86ppc1$bno$1...@nnrp1.deja.com>,

H. Sterken

unread,
Jan 28, 2000, 3:00:00 AM1/28/00
to
I've just installed QSHELL-interpreter on our V4R4 test-AS/400 and jar works
perfectly.
It looks like the problem lies in the V4R3-version of QSHELL/jar.
As we're going to install V4R4 in the next couple of weeks my problem is
solved.

Henk Sterken
Unidek Bouwelementen

Peter schreef:

René van der Gracht

unread,
Jan 28, 2000, 3:00:00 AM1/28/00
to
Frank,

Below the information you asked for:

PKZIP AS/400 of Ascent Solutions Inc. (ASI) is a high-performance data
compression software utility for the IBM AS/400. PKZIP AS/400 zips
AS/400
files with sizes of up to 4GB of uncompressed data and creates a
single archive
(compressed file) from multiple AS/400 files. PKZIP AS/400 consists
of two
main products: PKZIP and PKUNZIP.

Features & Benefits

Data reduction by 50-90%
Saves your communication costs for file transfer tremendous
Compatible with the industry standard PKZIP DOS 2.04g
Translates data to be compressed between EBCDIC and ASCII
Sophisticated 32-bit CRC guarantees the integrity of the files being
compressed
Ability to encrypt and decrypt data into a ZIP archive
Five different rates of compression: from superfast to terse

http://www.src.nl/softw/prof_pkzip400.htm
for more information or try

Ascent Solutions Inc. (ASI)

We use PKZIP version 3.6 (RISC)
PKZIP can only read OS/400 objects of type *FILE, with attributes PF
SRC, PF DTA and SAVF.
Other objects must first be unloaded into an OS/400 save file (SAVF) before
they can be processed by PKZIP.

It can work with IFS, just save it into a *savf. I think you also can use the
'client' zipper and
unzipper to do the job for you.

Regards,

René

Frank Healy wrote:

> René:
>
> I recently downloaded the software and it looks like it doesn't work
> with the IFS. Is this right?
>
> Frank
>
> René van der Gracht wrote:
> >
> > Bob,
> >
> > There is a PKZIP for the AS/400. We are using it. When I'll be back in the
> > office I will
> > give you (all) more information.
> >
> > gr.
> >
> > René
> >
> > Bob Lepp wrote:
> >
> > > I'm pretty sure PKZIP has an AS/400 product for compressing files.
> > > Bob
> > >
> > > Xavier JARDIN <xja...@sofice.fr> wrote in message
> > > news:388DB55A...@sofice.fr...

Frank Healy

unread,
Jan 28, 2000, 3:00:00 AM1/28/00
to
Thanks for the info René.

terry_...@my-deja.com

unread,
Jan 29, 2000, 3:00:00 AM1/29/00
to
I started to think the same thing... of course too late to suggest it.
Guess I don't get the credit then. :) I'm on V4R3 also. We are
probably upgrading soon... so guess we'll have 2 jobs that will continue
to be manual.

In article <3891565E...@unidek.nl>,

> > > > > > Hi,
> > > > > >
> > > > > > I wish to send textual files AS400 (format CSV Excel)
through e-
> > > mail
> > > > > > with Keyes Mail. The problem is the size of the files, on
> > average
> > > a
> > > > > > sending made
> > > > > > 3Mo whereas with WinZip on PC the size of the sending passes
to
> > > > > > approximately
> > > > > > 300Ko. Is it possible to compress starting from AS400 in a
> > > compatible
> > > > > > format
> > > > > > WinZip so that the recipient can uncompress the sending on
his
> > PC.
> > > > > >
> > > > > > Xavier Jardin.
> > > > >

David Shea

unread,
Jan 30, 2000, 3:00:00 AM1/30/00
to
If you're having space problems on your AS400, check out
http://www.arctools.com . It's a disk optimization utility that will help
you purge and/or archive your data, reorg your space, move stuff off to
tape, and keep track of when and how you archived it and also what tape(s)
you put it on.

--
+++++++++++++++++++++
Purge and Archive without Programming with ARCTOOLS(tm)
http://www.arctools.com
mailto:in...@arctools.com
+++++++++++++++++++++
"Frank Healy" <ecs...@encorecsi.com> wrote in message
news:3892453D...@encorecsi.com...

0 new messages