Upgrading UPS Toolkit for i
Note:
- In the following instructions, #### should be replaced with the version number of the target/new version level with any periods removed (example: For v2.10.0 you would use 2100)
- Download the ZIP file from the link provided to you by our support team.
- Unzip the downloaded file to C:\temp (or the directory of your choice).
- Issue the IBM i command:
CRTSAVF FILE(QGPL/UPSTI####) AUT(*ALL)
- FTP the file UPSTI.savf from your PC to the IBM i in BINARY mode into the save file that was just created:
- Open a DOS prompt (Start Run type 'cmd' and hit Enter)
- Type the following into the DOS prompt, replacing the IP address with that of your IBM i:
ftp 127.0.0.1
- When prompted, enter your user profile and password
- Execute the following commands in the DOS prompt to transfer the file:
binary
lcd C:\temp
Note: Replace C:\temp with the location of the UPSTI.savf on your local computer.quote site namefmt 0
cd QGPL
put UPSTI.savf UPSTI####.savf
quit
- Perform a full backup of your UPSTI library.
- Execute the following IBM i commands in sequence to upgrade the UPSTI library. Please be careful to enter the commands EXACTLY as listed, except for adjusting the SAVF and/or RSTLIB paramters:
RSTOBJ OBJ(*ALL) SAVLIB(UPSTI) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) OMITOBJ((LICP) (UPSCFGOPT) (UPSCFGAUTH) (UPSCFGACCT) (EXAMPLE) (UPSUNQ)) RSTLIB(UPSTI) DEV(*SAVF) SAVF(QGPL/UPSTI####)
Note: The above RSTOBJ command may produce messages in the job log that indicate that some files were not restored. If this occurs, make a note of each file which was not restored, and then rename each existing file using the RNMOBJ command. After you have renamed each existing file which failed to restore, please retry the above RSTOBJ command.RSTOBJ OBJ(UPSCFGOPT UPSCFGAUTH UPSCFGACCT) SAVLIB(UPSTI) OPTION(*NEW) RSTLIB(UPSTI) DEV(*SAVF) SAVF(QGPL/UPSTI###)
Note: The above RSTOBJ command may report that no objects were restored. This is not an error condition and you should continue with the next step.RNMOBJ OBJ(UPSTI/EXAMPLE) OBJTYPE(*FILE) NEWOBJ(EXAMPLE@@@)
Note: The above RNMOBJ command may instead optionally be replaced withDLTF FILE(UPSTI/EXAMPLE)
to delete the EXAMPLE source physical file. You should only do this if you are confident that your company has not stored your own source code inside the included EXAMPLE source physical file.RSTOBJ OBJ(EXAMPLE) OBJTYPE(*FILE) SAVLIB(UPSTI) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) RSTLIB(UPSTI) DEV(*SAVF) SAVF(QGPL/UPSTI###)
- Execute the following IBM i command to restore updates to necessary files in the IFS (this is all one command):
RST DEV('/QSYS.LIB/UPSTI.LIB/IFS.FILE') OBJ(('/ktprod/upsti' *INCLUDE '/ktprod/upsti')) CRTPRNDIR(*YES) PRNDIROWN(QSYS) ALWOBJDIF(*ALL)