Tech-Tip: Using the InterForm400 unzip command to do a remote upgrade
When you install InterForm400 you have several options to do the upgrade:
1) You can use the java based tool, RSTLIBPC to upload and restore the APF3812NEW library.
2) You can unzip the distributed zip file, burn the contents to the root of a CD and do a LODRUN. (Or use a virtual CD).
3) You can unzip the file and FTP the save file, SAVF3812 onto a save file on the System i and restore the apf3812new library from that (and run APF3812NEW/APF3812NEW)
I am using a remote machine, so I try to limit the upload time as much as possible and have found a fourth way - if you are upgrading from a 2008 version or later. The trick is, that the 2008 versions and later includes the APF3812/UNZIP command, which require '5722JV1 or 5761JV1 Java development kit' on the System i.
(Check that the command is there and the licensed program is installed before you try it yourself ;-))
So what you can do is simply to upload the zipped distribution file instead of uploading the unzipped SAVF3812 file.
The zip file (also containing other files) is about half the size of the unzipped SAVF3812 file.
First you need to upload the zip file to the IFS. Let us assume it is uploaded to /APF3812Home/Work.
Now you can unzip the file with InterForm400 and place the unzipped files here with this command:
APF3812/UNZIP ARCHIVE('/apf3812Home/work/IF2010.M511.zip') CURDIR('/apf3812Home/Work')
Now create a save file to which we can copy the unzipped SAVF3812 file:
CRTSAVF FILE(QGPL/SAVF3812)
- and copy the SAVF3812 file in the IFS into the save file:
CPYFRMSTMF FROMSTMF('/apf3812Home/work/savf3812') TOMBR('/qsys.lib/qgpl.lib/savf3812.file') MBROPT(*REPLACE) CVTDTA(*NONE)
Then you can restore the APF3812NEW library from the save file:
RSTLIB SAVLIB(APF3812NEW) DEV(*SAVF) SAVF(QGPL/SAVF3812)
And finally you can do the upgrade with the AF3812NEW command:
APF3812NEW/APF3812NEW
Finally you could consider to delete or clear the temporary save file created above.
The way of uploading a zip file and unzipping it like above can of course also be used for a lot of other save files. I hope you can use it as well..
Remember that InterForm400 also includes the ZIP command, which you can consider when downloading stuff from the System i.
1) You can use the java based tool, RSTLIBPC to upload and restore the APF3812NEW library.
2) You can unzip the distributed zip file, burn the contents to the root of a CD and do a LODRUN. (Or use a virtual CD).
3) You can unzip the file and FTP the save file, SAVF3812 onto a save file on the System i and restore the apf3812new library from that (and run APF3812NEW/APF3812NEW)
I am using a remote machine, so I try to limit the upload time as much as possible and have found a fourth way - if you are upgrading from a 2008 version or later. The trick is, that the 2008 versions and later includes the APF3812/UNZIP command, which require '5722JV1 or 5761JV1 Java development kit' on the System i.
(Check that the command is there and the licensed program is installed before you try it yourself ;-))
So what you can do is simply to upload the zipped distribution file instead of uploading the unzipped SAVF3812 file.
The zip file (also containing other files) is about half the size of the unzipped SAVF3812 file.
First you need to upload the zip file to the IFS. Let us assume it is uploaded to /APF3812Home/Work.
Now you can unzip the file with InterForm400 and place the unzipped files here with this command:
APF3812/UNZIP ARCHIVE('/apf3812Home/work/IF2010.M511.zip') CURDIR('/apf3812Home/Work')
Now create a save file to which we can copy the unzipped SAVF3812 file:
CRTSAVF FILE(QGPL/SAVF3812)
- and copy the SAVF3812 file in the IFS into the save file:
CPYFRMSTMF FROMSTMF('/apf3812Home/work/savf3812') TOMBR('/qsys.lib/qgpl.lib/savf3812.file') MBROPT(*REPLACE) CVTDTA(*NONE)
Then you can restore the APF3812NEW library from the save file:
RSTLIB SAVLIB(APF3812NEW) DEV(*SAVF) SAVF(QGPL/SAVF3812)
And finally you can do the upgrade with the AF3812NEW command:
APF3812NEW/APF3812NEW
Finally you could consider to delete or clear the temporary save file created above.
The way of uploading a zip file and unzipping it like above can of course also be used for a lot of other save files. I hope you can use it as well..
Remember that InterForm400 also includes the ZIP command, which you can consider when downloading stuff from the System i.