The PAEZIP tool is an application that combines multiple files into a single compressed archive file. PAEZIP is a general-purpose archiving and compression tool, based on ZIP compression format. However, PAEZIP was designed mainly to facilitate the packaging of AS/400 objects or libraries into a single archive. When the components of a library or application are combined into a single archive, they may be downloaded or E-mailed by a single HTTP transaction, rather than requiring a new connection for each piece. This dramatically improves download times. PAEZIP also compresses files and so further improves download time. These compressed files also can be sent to other servers via FTP. Names listed below are for illustration purposes. Use names that mean something to you.
Intelligent Storage Management (ISM)could reduce object size down by 97% of original size. This facility reduces storage of seldom-used objects by Compression/Decompression into the popular .zip format. This can be a useful way to distribute Objects/Files/Libraries from your AS/400. Intelligent Storage Management will allow you to simply archive seldom-used objects. If the object is needed, ISM will dynamically and instantaneously return the object back to its original size and format. Compressed files can be attached to e-mail and sent to anyone. Intelligent Storage Management also has the ability to decompress any .zip file directly on your AS/400. Any type of IFS objects or AS/400 data can be compressed to reduce online storage requirements. ISM is part of PAEZIP. To find information on ISM, take the option on home page for Intelligent Storage Management and view the documentation. You will be missing a lot if you to not take advantage of ISM as well as our ZIP Utility PAEZIP.
In the above example, the file myfile.txt which is located in the directory /pae/peter is being compressed and placed into the compressed file called, "myzipfile.zip". The file will be placed in the directory /pae. The zipped file, myzipfile.zip, can now be sent as an E-mail attachment or FTP. The file also can be unzipped by almost any traditional zip utility like PKZip or WinZip.
In the above example, the contents of "myzipfile.zip" is being decompress back to the original directory that it was compressed from. The Path or Stream file does not have to be entered and should be left blank if contents are to be placed back in the original location.
Some times it is nice to know what is in the compressed zip file before the file is decompressed. By using the *DSPLY value, the contents of the compressed file can be displayed. The contents of the display zip file will be placed in the joblog of your job. By executing DSPJOBLOG and pressing F10, you can display exactly what is there. See the two examples below. These are the last 2 pages of the joblog. The process might take awhile to process depending on the size of the data in the zipped file.
Notice that the name of the /directory/object appear.
In the above example, myzipfile.zip is being placed into the directory /pae/decompress not in the original directory that they were saved(compressed) from.
This example shows a savefile named qgpl/savefile being compressed into mysavf.zip. Use the SAVOBJ or SAVLIB command to save the library/objects to the SAVF. Command depends on what is being saved to a SAVF.
Make sure that you use DATA COMPRESSION *YES. This will give you even more compression prior to the compressing of PAEZIP command.
In the above example, the contents of myzipfile.zip are being decompressed into the SAVF(qgpl/savefile). When you use Example 5 above to zip a SAVF, you can send the SAVF in zipped format either by FTP or by E-mail.
Path with blanks are supported by placing a "" around
the file and path name as shown in the example below.
In this example the zip file and named TEST1 NOW.ZIP and the file is LPT/JAR PROBLEMS.DOC
PAEZIP/PAEZIP FILE('"lpt/jar problems.doc"')
Note: You must use a single quote followed
by a double quote around the path if you are executing this
command on a command line as above. If the command is in a CLP,
then you do not need the single quotes, only the double "
Depending on which release of JAVA you have loaded to the AS/400 and the version of OS/400 installed. Security can be different. To give the public all authority to a zipped file you can add a command like this to a CLP or ADDJOBSCDE. I believe V5R1M0 will address all of these issues.
CHGAUT OBJ('/paezip/*') USER(*PUBLIC) DTAAUT(*RWX) OBJAUT(*ALL)
The folder/directory QDLS and objects cannot be used with PAEZIP command or the ISM system. Java does not support QDLS.
Additional parms will be added to the PAEZIP command which may not be show on this page.
Review the Help Text for PAEZIP, PDF format
Review the Help Text for PAEZIP, HTML format