Changes made by the V6.0 migration tool

The EGL V6.0 migration tool converts EGL source from V5.1.2 and V6.0 to comply with EGL V6.0 iFix 001. To comply with EGL V6.0 iFix 001, the migration tool changes EGL code in several ways.
To learn about the changes made by the V6.0 migration tool, see the following sections:

Properties

The migration tool changes the way properties are specified. For information about the changes to properties, see “Changes to properties during the V6.0 iFix 001 migration.”

Variable and part names

The migration tool searches for variables and part names that conflict with reserved words, and then changes those names by adding a prefix or suffix, as defined in the migration preferences. By default, the tool adds the suffix _EGL to any name that is now a reserved word. The migration tool does not rename objects of the CALL statement, and it does not update references in EGL Build Part files.
Before migration:
Library Handler
  boolean Bin(4);
End
After migration:
Library Handler_EGL
  boolean_EGL Bin(4);
End

The use of the equal sign

In instances where the equals sign is used as a comparison operator, the migration tool replaces the single equals sign (=) with the double equals sign (==). It does not change the single equals sign when it is used as an assignment operator.
Before migration:
Function test(param int)
  a int;
  If(param = 3)
    a = 0;
  End
End
After migration:
Function test(param int)
  a int;
  If(param == 3)
    a = 0;
  End
End

Records

The migration tool adds level numbers to records that do not have level numbers.
Before migration:
Record MyRecord
  item1 int;
  item2 int;
End
After migration:
Record MyRecord
  10 item1 int;
  10 item2 int;
End

Declaration syntax of constants

The migration tool changes the declaration syntax of constants.

Before migration:

intConst 3;
After migration:
const intConst int = 3;

Variables and function names

The migration tool changes variables and function names that have been moved to different libraries or renamed. This change affects variables and functions from the sysLib and sysVar libraries.

Before migration:

sysLib.java();
clearRequestAttr();
After migration:
javaLib.invoke();
j2eeLib.clearRequestAttr();
The following variables and function names from the sysLib and sysVar libraries are changed in the migration:
Table 1. Changed variable and function names from the sysLib and sysVar libraries
Before migration After migration
sysLib.dateValue dateTimeLib.dateValue()
sysLib.extendTimestampValue dateTimeLib.extend()
sysLib.formatDate strLib.formatDate()
sysLib.formatTime strLib.formatTime()
sysLib.formatTimestamp strLib.formatTimestamp()
sysLib.intervalValue dateTimeLib.intervalValue()
sysLib.timeValue dateTimeLib.timeValue()
sysLib.timestampValue dateTimeLib.timestampValue()
sysLib.java javaLib.invoke()
sysLib.javaGetField javaLib.getField()
sysLib.javaIsNull javaLib.isNull()
sysLib.javaIsObjID javaLib.isObjID()
sysLib.javaRemove javaLib.remove()
sysLib.javaRemoveAll javaLib.removeAll()
sysLib.javaSetField javaLib.setField()
sysLib.javaStore javaLib.store()
sysLib.javaStoreCopy javaLib.storeCopy()
sysLib.javaStoreField javaLib.storeField()
sysLib.javaStoreNew javaLib.storeNew()
sysLib.javaType javaLib.qualifiedTypeName()
sysLib.clearRequestAttr j2eeLib.clearRequestAttr()
sysLib.clearSessionAttr j2eeLib.clearSessionAttr()
sysLib.getRequestAttr j2eeLib.getRequestAttr()
sysLib.getSessionAttr j2eeLib.getSessionAttr()
sysLib.setRequestAttr j2eeLib.setRequestAttr()
sysLib.setSessionAttr j2eeLib.setSessionAttr()
sysLib.displayMsgNum converseLib.displayMsgNum()
sysLib.clearScreen converseLib.clearScreen()
sysLib.fieldInputLength converseLib.fieldInputLength()
sysLib.pageEject converseLib.pageEject()
sysLib.validationFailed converseLib.validationFailed()
sysLib.getVAGSysType vgLib.getVAGSysType()
sysLib.connectionService vgLib.connectionService()
sysVar.systemGregorianDateFormat vgVar.systemGregorianDateFormat
sysVar.systemJulianDateFormat vgVar.systemJulianDateFormat
sysVar.currentDate vgVar.currentGregorianDate
sysVar.currentFormattedDate vgVar.currentFormattedGregorianDate
sysVar.currentFormattedJulianDate vgVar.currentFormattedJulianDate
sysVar.currentFormattedTime vgVar.currentFormattedTime
sysVar.currentJulianDate vgVar.currentJulianDate
sysVar.currentShortDate vgVar.currentShortGregorianDate
sysVar.currentShortJulianDate vgVar.currentShortJulianDate
sysVar.currentTime dateTimeLib.currentTime
sysVar.currentTimeStamp dateTimeLib.currentTimeStamp
sysVar.handleHardIOErrors vgVar.handleHardIOErrors
sysVar.handlesysLibErrors vgVar.handlesysLibraryErrors
sysVar.handleOverflow vgVar.handleOverflow
sysVar.mqConditionCode vgVar.mqConditionCode
sysVar.sqlerrd vgVar.sqlerrd
sysVar.sqlerrmc vgVar.sqlerrmc
sysVar.sqlIsolationLevel vgVar.sqlIsolationLevel
sysVar.sqlWarn vgVar.sqlWarn
sysVar.commitOnConverse converseVar.commitOnConverse
sysVar.eventKey converseVar.eventKey
sysVar.printerAssociation converseVar.printerAssociation
sysVar.segmentedMode converseVar.segmentedMode
sysVar.validationMsgNum converseVar.validationMsgNum

HandleHardIOErrors property

The migration tool sets the HandleHardIOErrors property to NO for all migrated libraries, programs, and pageHandlers for which that property is not specified.

Feedback