Old versions of system variable evaluation programs can interfere with your current system

Date:18 May 2009
Product/Release:LANSA for iSeries V11.3
Abstract:Your system may have old versions of the system variable evaluation programs in partition program libraries from previous export/imports
Submitted By:LANSA Technical Support

Description:

The following fix was shipped in LANSA V11.3.

--------------------------------------------------------------------------------
CCS#: 0123052 (Defect)
Description: LANSA supplied system variable evaluation programs excluded from import/export
Originator: LANSA USA
EPC Superceded: None
Detailed Description: Standard system variable evaluation programs will not be automatically included in an export and will not be imported.
These standard evaluation programs are LANSA supplied programs.
They should not be imported since they may have been exported from an earlier version.
They do not need to be included in an export since they must exist in any target LANSA system.
These programs are M@SYSVAR, M@SYSNUM, W3@P2100, M@SYSDTA and F@SYSVAR.
--------------------------------------------------------------------------------

However, this fix does not clean up existing system variable evaluation programs that may exist on your environment and have the potential to cause errors. These may exist from imports prior to 11.3, which, by default, placed the system variable evaluation programs in the partition module library.

Solution:

The following steps can be used to locate all the extra copies of those system variable evaluation programs and eliminate them (from all but the actual DC@PGMLIB or DCXPGMLIB, etc.)

  1. Issue the WRKOBJ command to find all copies of M@SYSNUM *PGM
    WRKOBJ OBJ(*ALL/M@SYSNUM) OBJTYPE(*PGM)
     
  2. For each extra copy of M@SYSNUM identified above (not in the "real" DC@PGMLIB or DCXPGMLIB, etc.), issue
    RNMOBJ OBJ(xxxxxxxxxx/M@SYSNUM) OBJTYPE(*PGM) NEWOBJ(Z@SYSNUM)
    After issuing this command, ensure that your LANSA system and LANSA applications execute as normal.
     
  3. Later, delete the renamed programs for each program renamed above, e.g.
    DLTPGM PGM(xxxxxxxxxx/Z@SYSNUM)
     
  4. You can complete steps 1-3 to clean your environment of each of the extraneous standard evaluation programs.