Submitted by Kim Egekjaer on Fri, 11/30/2012 - 00:00
Forums

InterForm400 contains a lot of extra commands, that you would not expect from such an application, but it can actually help you in your daily work in more manners, that you may have thought. If you e.g. want to save and restore a library, then InterForm400 even offers commands to help you with that:

RSTLIBFLR   Restore Library from Folder                              
SAVLIBSTMF  Save library into stream file
SAVLIB2FLR  Save Library into Folder    

The commands ZIP and UNZIP are also included:

ZIP     ZIP stream file(s)
UNZIP   UNZIP to current directory  

The Zip command can e.g. be used if you want to send a large file to a remote destination directly from the System i. The Unzip command can e.g. be used to unzip a received zip file directly on the System i. This command creates a new zip file, My_File.zip, and saves all stream files in the /apf3812home/view directory into it:

APF3812/ZIP ARCHIVE('/apf3812home/work/My_File.zip') CREATE(*CREATE) CURDIR('/apf3812home/view') FROMSTMF(*)                                        

 
This command unzips the InterForm400.zip file into the /apf3812home/work directory:

APF3812/UNZIP ARCHIVE('/apf3812home/work/interform400.zip') CURDIR('/apf3812home/work')                                                          

 
Refer to the InterForm400 manual for detailed descriptions of these commands.