Upgrading RPG-XML Suite 3.4.x
The upgrade process for RPG-XML Suite is dependent on how many libraries contain RPG-XML Suite objects. You can determine if RPG-XML Suite is installed in multiple libraries with this command:
WRKOBJ OBJ(*ALL/RXS*) OBJTYPE(*SRVPGM)
If the WRKOBJ command lists only library RXS, you should use the upgrade instructions for Single Library Installation below.
If the WRKOBJ command lists libraries other than RXS, please use the upgrade instructions for Multiple Library Installation below.
Additionally, if you have a library named KTLIC on your IBM i, please follow the instructions for KTLIC Library Deprecation below before beginning any upgrade.
Single Library Installation
Note:
- @@@ is the version number of the source/current version level (example: 220)
- ### is the version number of the target/new version level (example: 343)
- Unzip the downloaded upgrade file to C:\temp (or the directory of your choice).
- Issue the IBM i command:
CRTSAVF FILE(QGPL/RXS###) AUT(*ALL)
- FTP the file rxs.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 rxs.savf on your local computer.quote site namefmt 0
cd QGPL
put rxs.savf rxs###.savf
quit
- End all RPG-XML Suite Apache instances. Note that this will mean your web services are NOT accessible! Execute the following IBM i command to end the Apache instances:
ENDTCPSVR SERVER(*HTTP) HTTPSVR(RXS)
Note: Be sure to execute this command for any custom instances that also use RPG-XML Suite. - Perform a full backup of library RXS.
- Execute the following IBM i commands in sequence to upgrade the library RXS. Please be careful to enter the commands EXACTLY as listed, except for adjusting the SAVF parameter:
RSTOBJ OBJ(*ALL) SAVLIB(RXS) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) OMITOBJ((RXSUNQ) (RXSCFG) (LICP) (RXSRTRCTL) (RXSRTRLOG)) RSTLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###)
Note: The above RSTOBJ command may report that file RXS was not restored. If this occurs, please rename the existing RXS file to RXS@@@ where @@@ is the pre-upgrade version level. Then retry the RSTOBJ command.RSTOBJ OBJ(RXSUNQ RXSCFG LICP RXSRTRCTL RXSRTRLOG) SAVLIB(RXS) OPTION(*NEW) RSTLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###)
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.
- Execute the following IBM i commands when files RXS/RXSRTRCTL and RXS/RXSRTRLOG do NOT already have a RXSRTR member:
RNMM FILE(RXS/RXSRTRCTL) MBR(RXSRTRCTL) NEWMBR(RXSRTR)
RNMM FILE(RXS/RXSRTRLOG) MBR(RXSRTRLOG) NEWMBR(RXSRTR)
CHGPF FILE(RXS/RXSRTRCTL) MAXMBRS(32)
CHGPF FILE(RXS/RXSRTRLOG) MAXMBRS(32)
- Execute the following IBM i commands when your pre-upgrade version was previous to version 2.70:
RMVLIBLE LIB(RXS)
ADDLIBLE LIB(RXS) POSITION(*FIRST)
APYLIC LICKEY(<<insert key that was provided during your upgrade planning>>) PRODUCT(RXS)
Note: If you need a temporary license key, please email our support team at isupport@katointegrations.com.
- Restart all RPG-XML Suite Apache instances:
STRTCPSVR SERVER(*HTTP) HTTPSVR(RXS)
Note: Be sure to execute this command for any custom instances that also use RPG-XML Suite. - Initialize RXS Router:
INZRXSRTR ENV(*ALL)
Multiple Library Installation
If you haven't yet, run the following command:
WRKOBJ OBJ(*ALL/RXS*) OBJTYPE(*SRVPGM)
Using the libraries output by the WRKOBJ command, please make a list of the libraries which need to be upgraded, but do not include the library RXS on the list. There should be an Apache instance for each library and the instance name should be the same as the library. As you continue with these instructions, this list will be referred to as the "Upgrade List". These instructions will have you first perform the upgrade to your RXS library, then to each library on the Upgrade List.
These instructions will reference the library and Apache instance named MYRXS. You may or may not have a MYRXS library and Apache instance on your Upgrade List. Regardless, when upgrading each library on your Upgrade List, substitute that library's name in place of MYRXS in the following instructions.
Note:
- @@ is the version number of the source/current version level (example: 22)
- ### is the version number of the target/new version level (example: 343)
- Unzip the downloaded upgrade file to C:\temp (or the directory of your choice).
- Issue the IBM i command:
CRTSAVF FILE(QGPL/RXS###) AUT(*ALL)
- FTP the file rxs.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 rxs.savf on your local computer.quote site namefmt 0
cd QGPL
put rxs.savf rxs###.savf
quit
- End all RPG-XML Suite Apache instances. Note that this will mean your web services are NOT accessible! Execute the following IBM i command to end the Apache instances, while substituting the instance names from the Upgrade List for MYRXS:
ENDTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)
Note: Be sure to execute this command for any custom instances that also use RPG-XML Suite. - Perform full backups of library RXS and all libraries on the Upgrade List.
- Execute the following IBM i commands in sequence to upgrade the library RXS. Please be careful to enter the commands EXACTLY as listed, except for adjusting the SAVF parameter:
RSTOBJ OBJ(*ALL) SAVLIB(RXS) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) OMITOBJ((RXSUNQ) (RXSCFG) (LICP) (RXSRTRCTL) (RXSRTRLOG)) RSTLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###)
Note: The above RSTOBJ command may report that file RXS was not restored. If this occurs, please rename the existing RXS file to RXS@@@ where @@@ is the pre-upgrade version level. Then retry the RSTOBJ command.RSTOBJ OBJ(RXSUNQ RXSCFG LICP RXSRTRCTL RXSRTRLOG) SAVLIB(RXS) OPTION(*NEW) RSTLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###)
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.
- Execute the following IBM i commands when file RXS/RXSRTRCTL does NOT already exist:
RSTOBJ OBJ(RXSRTRCTL RXSRTRLOG) SAVLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###) RSTLIB(RXS)
- Execute the following IBM i commands when files RXS/RXSRTRCTL and RXS/RXSRTRLOG do NOT already have a RXSRTR member:
RNMM FILE(RXS/RXSRTRCTL) MBR(RXSRTRCTL) NEWMBR(RXSRTR)
RNMM FILE(RXS/RXSRTRLOG) MBR(RXSRTRLOG) NEWMBR(RXSRTR)
CHGPF FILE(RXS/RXSRTRCTL) MAXMBRS(32)
CHGPF FILE(RXS/RXSRTRLOG) MAXMBRS(32)
- Execute the following IBM i commands when your pre-upgrade version was previous to version 2.70:
RMVLIBLE LIB(RXS)
ADDLIBLE LIB(RXS) POSITION(*FIRST)
APYLIC LICKEY(<<insert key that was provided during your upgrade planning>>) PRODUCT(RXS)
Note: If you need a temporary license key, please email our support team at isupport@katointegrations.com.
- Execute the following IBM i commands to upgrade all the libraries on the Upgrade List, while substituting the names from the Upgrade List for MYRXS:
- Note: The following string is a single command - you must copy the entire string. You may need use the extended command line accessed via STRPDM.
RSTOBJ OBJ(*ALL) SAVLIB(RXS) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) OMITOBJ((RXSUNQ) (RXSCFG) (LICP) (INSTALL) (NEWENV) (HTTP*) (DSPMCH*) (CRTRXS*) (QTXT) (REGRXSBASE) (VER*) (RXSRTR* *FILE) (*ALL *PNLGRP) (RXSURI*) (DSPVER) (RXSMENU*) (INZ*) (WRK*) (CRT*)) RSTLIB(MYRXS) DEV(*SAVF) SAVF(QGPL/RXS###)
Note: The above RSTOBJ command may report that file RXS was not restored. If this occurs, please rename the existing RXS file to RXS@@@ where @@@ is the pre-upgrade version level. Then retry the RSTOBJ command. CPYF FROMFILE(RXS/LICP) TOFILE(MYRXS/LICP) MBROPT(*REPLACE) CRTFILE(*YES)
- Note: The following string is a single command - you must copy the entire string. You may need use the extended command line accessed via STRPDM.
- Restart all RPG-XML Suite Apache server instances by executing the following command, while substituting the names from the Upgrade List for MYRXS:
STRTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)
Note: Be sure to execute this command for each instance name on the Upgrade List and for any custom instances that also use RPG-XML Suite. - Initialize RXS Router:
INZRXSRTR ENV(*ALL)
KTLIC Library Depreciation
Library KTLIC was installed with version level 2.7x only and has been deprecated since version 2.80. KTLIC is no longer needed after upgrading to version 2.80 or higher. If your pre-upgrade version level is already 2.80 or higher, do not run the CPYF command below and instead note the reference to saving and deleting KTLIC.
If your pre-upgrade version is 2.7x, execute the following IBM i commands before beginning any upgrade:
CPYF FROMFILE(KTLIC/LICP) TOFILE(RXS/LICP) MBROPT(*REPLACE) CRTFILE(*YES)
After your upgrade to a version 2.80 or greater is complete and proven successful, please save and then delete library KTLIC.