5769SS1 V4R4M0 990521 HELP 01/04/01 15:33:03 Page 1 PAE ZIP function PAE Zip Function - Help This command allows any file on the AS/400 to be compressed into format that can read with the popular PKWare command. The file to be compressed can be a Savefile which can then be placed onto the AS/400 IFS. This would allow a User who has access to the IFS (such as PC or Web applications) to download the file and unzip it to their system. The command also supports Decompressing any valid .zip file. General Description/Purpose o The main purpose of PAEZIP is allow a simple convenient method to create .zip files directly from many AS/400 applications. o It can automatically convert a Savefile. o Can zip any object located on the IFS. o Can unzip any valid .zip file. Limitations o Must have Licensed program 5769SS1 option(30) installed. This program can be downloaded from our website or is available on your original IBM media. o User must have authority to perform function. Adopted authority will not be sufficient. o Works best with *STMF files. If you wish to compress other files/objects, just save them to a save file and zip it. Examples o To compress the savefile QGPL/SAVEFILE and place in the directory /pae/ as savefile.zip use the following command: PAEZIP/PAEZIP OPTION(*ZIP) ZIPFILE('/pae/savefile.zip') SAVF(QGPL/SAVEFILE). o To decompress the above file into the same savefile use the following command: PAEZIP/PAEZIP OPTION(*UNZIP) ZIPFILE('/pae/savefile.zip') SAVF(QGPL/SAVEFILE). o To display the above .zip use the following command: PAEZIP/PAEZIP OPTION(*DSPLY) ZIPFILE('/pae/savefile.zip'). o To compress the *STMF file /directory/stmf.exe and place it in the directory /pae/ as zipfile.zip use the following command: PAEZIP/PAEZIP OPTION(*ZIP) ZIPFILE('/pae/zipfile.zip') FILE('/directory/stmf.exe'). o To decompress the above file but place it into a differant directory directory2 use the following command: PAEZIP/PAEZIP OPTION(*UNZIP) ZIPFILE('/pae/zipfile.zip') FILE('/directory2/').
Page 2 Option (OPTION) - Help Specifies the requested option. The possible values are: *ZIP Created a Compressed PKZIP format file to the path specified in the ZIPFILE parameter. *ZIPU Update an existing PKZIP format file to the path specified in the ZIPFILE parameter. *UNZIP Decompress any compatible file specified in ZIPFILE and places into FILE path. If the SAVF is specified then and the file is a Savefile it will be placed into a savefile by that name. *DSPLY Display the contents of the file specified in ZIPFILE. ZIP file name - Help This will specify the path and file name of the zipfile you wish to use. If the file does not exist and OPTION(*ZIP) specified, it will be created for you. Any directories specified must exist. Notes o This parameter will always contain the .zip file. On the *ZIP option it will be the .zip file to create with the requested file. On the *UNZIP option it will be the .zip file to decompress. o The full path name must be specified (i.e. /pae/savefile.zip). o All directories specified must exist. o To use a zip file called archieve.zip in the /pae/ directory enter: ZIPFILE('/pae/archieve.zip'). Path & Stream file - Help This will specify the path and file name of the file you wish to Compress when OPTION(*ZIP) specified. When OPTION(*UNZIP) specified it determines where the decompressed file(s) are placed. It cannot be used if the SAVF parameter is specified. Notes o Only IFS files are supported. o The full path name must be specified (i.e. /pae/savefile.zip). o All directories specified must exist. o To specify a STMF file called program.exe in the /pae/
Page 3 directory enter: FILE('/pae/program.exe'). Save file - Help This will specify the Save file name to either be Compressed or to be loaded with the Decompressed data. Which object to unzip - Help This parameter allows you to specify the object(s) to unzip. You must specify the full path and object name (i.e. /pae/savefiles/paezip.svf). If you are unsure which objects a .zip file contains, use the *DSPLY to display the contents of the .zip file. *ALL All objects contained in the specified .zip file will be unziped. Object(s) Enter the path and object name to unzip. Additional help text will be added in the future in the command itself and may not be displayed here. * * * * * E N D O F L I S T I N G * * * * *