|
>I was trying to see if I can compress save
>files to a size smaller that a
>save file. First is anyone has tried this I
>will not try it otherwise I will try.
Two alternatives that involve no coding:
1. SAVLIB LIB(YOURLIB) DEV(*SAVF) SAVF(YOURLIB/YOURSAVF) DTACPR(*YES)
This uses OS/400's own built-in compression. I've found it reasonably
good. It is not the default.
2. If you don't like #1 for some reason, there's another way.
(Assumes Java installed -- you don't need to program in Java for this)
First, FTP
ftp to your own machine.
namefmt 1
lcd /somewhere/in.your/ifs
put /qsys.lib/yourlib.lib/yourfile.file yourfile.savf
Then, under QSH:
cd /somewhere/in.your/ifs
jar -cf yourzip.zip yourfile.savf
The Java "Jar" command does zip files (a Java Jar file is nothing more than
a zip, really). I haven't done both, but I doubt if you get much
improvement over doing both for doing just the first one. It might even
get larger.
Larry W. Loen - Senior Linux, Java, and iSeries Performance Analyst
Dept HP4, Rochester MN
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.