EGL is the replacement for VisualAge® Generator 4.5 and includes
some syntax primarily to enable the migration of existing programs to the
new development environment. This syntax is supported in the development environment
if the EGL preference VAGCompatibility is selected
or (at generation or debug time) if the build descriptor option VAGCompatibility is
set to yes. The setting of the preference also establishes
the default value of the build descriptor option.
The following statements apply when VisualAge Generator compatibility
is in effect:
- Three otherwise invalid characters (- @ #) are valid in identifiers, although
each is invalid as an initial character in any case; for details, see Naming
conventions
- If you refer to a static, single-dimension array of structure items without
specifying an index, the array index defaults to 1; for details, see Arrays
- The primitive types NUMC and PACF are available, as described in Primitive
types
- If you specify an even length for an item of primitive type DECIMAL, EGL
increments the length by one except when the item is used as an SQL host variable.
- The SQL item property SQLDataCode is available,
as described in SQL item properties
- A set of call options are available in the call statement
- The option externallyDefined is in the statements show and transfer
- The following system variables are available:
- VGVar.handleSysLibraryErrors
- ConverseVar.segmentedMode
- The following system functions are available:
- VGLib.getVAGSysType
- VGLib.connectionService
- You can issue a statement of the following form:
display printForm
- printForm
- Name of a print form that is visible to the program.
In that case, display is equivalent
to print.
- The following program properties are available in all cases and are especially
useful for code that was written in VisualAge Generator:
- allowUnqualifiedItemReferences
- handleHardIOErrors (when set to no)
- includeReferencedFunctions
- localSQLScope (when set to yes)
- throwNrfEofExceptions (when set to yes)
For details, see Program part properties.
In relation
to DL/I code, the @DLI program property, field handleHardDLIErrors is
useful for code that was written in VisualAge Generator, if that property
is set to no. For details, see @DLI.
- If you set the text-form property value, the
content of that property is available in the program only after the user has
returned the form. For this reason, the value that you set in the program
does not need to be valid for the item in the program.
For access to full details on migrating VisualAge Generator programs to EGL,
see Sources of additional information on EGL.