Upgrading RPG-XML Suite 3.1x
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.
Single Library Installation
Note:
- @@ is the version number of the source/current version level (example: 22)
- ### is the version number of the target/new version level (example: 310)
- 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 just created.
- Open a DOS prompt (Start Run enter 'cmd' and hit enter)
- Type the following into the DOS prompt, replacing the IP address with that of your iSeries:
ftp 172.29.134.41
- When prompted enter user profile and password
binary
lcd c:\temp (where c:\temp is 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:
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 command to upgrade the library RXS (this is all one command):
RSTOBJ OBJ(*ALL) SAVLIB(RXS) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) OMITOBJ((RXSUNQ) (RXSCFG) (LICP) (RXSRTRCTL) (RXSRTRLOG)) RSTLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###)
Note: If any of the objects listed in OMITOBJ do NOT already exist in library RXS, then remove them from the OMITOBJ parameter. This is most common if your pre-upgrade version is previous to 2.80. - 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.80 and if you do not have a library named KTLIC on your IBM i:
RMVLIBLE LIB(RXS)
ADDLIBLE LIB(RXS) POSITION(*FIRST)
APYLIC LICKEY(<<insert key that was provided during your upgrade planning>>) PRODUCT(RXS)
- 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.
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 RXS library 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”. The library and Apache instance named MYRXS will be referenced in the instructions as you continue, but MYRXS may, or may not, be on your Upgrade List. If MYRXS is not on the Upgrade List, please substitute all libraries which do appear on the list in place of references to MYRXS. If MYRXS is on the Upgrade List, please follow the instructions that reference MYRXS and then also duplicate those instructions for any other libraries/instances on the list in addition to MYRXS.
Note:
- @@ is the version number of the source/current version level (example: 22)
- ### is the version number of the target/new version level (example: 310)
- 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 just created.
- Open a DOS prompt (Start Run enter 'cmd' and hit enter)
- Type the following into the DOS prompt, replacing the IP address with that of your iSeries:
ftp 172.29.134.41
- When prompted enter user profile and password
binary
lcd c:\temp (where c:\temp is 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 command to upgrade the library RXS (this is all one command):
RSTOBJ OBJ(*ALL) SAVLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) RSTLIB(RXS) OMITOBJ((RXSUNQ) (RXSCFG) (LICP)(RXSRTRCTL)(RXSRTRLOG))
Note: If any of the objects listed in OMITOBJ do NOT already exist in library RXS, then remove them from the OMITOBJ parameter. This is most common if your pre-upgrade version is previous to 2.80. - 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.80 and if you do not have a library named KTLIC on your IBM i:
RMVLIBLE LIB(RXS)
ADDLIBLE LIB(RXS) POSITION(*FIRST)
APYLIC LICKEY(<<insert key that was provided during your upgrade planning>>) PRODUCT(RXS)
- 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:
RSTOBJ OBJ(*ALL) SAVLIB(RXS) DEV(*SAVF) SAVF(QGPL/RXS###) MBROPT(*ALL) ALWOBJDIF(*FILELVL *OWNER) RSTLIB(MYRXS) OMITOBJ((RXSUNQ) (RXSCFG) (LICP) (INSTALL) (NEWENV) (HTTP*) (DSPMCH*) (CRTRXS*) (QTXT) (REGRXSBASE) (VER*) (RXSRTR* *FILE) (*ALL *PNLGRP) (RXSURI*) (DSPVER) (RXSMENU*) (INZ*) (WRK*) (CRT*))
CPYF FROMFILE(RXS/LICP) TOFILE(MYRXS/LICP) MBROPT(*REPLACE) CRTFILE(*YES)
- 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.