VisualAge Generator to Enterprise Generation Language Migration Guide

Map fields and the numeric hardware attribute

VisualAge Generator: VisualAge Generator supports the numeric hardware attribute for character constant fields, character variable fields, and numeric variable fields. The numeric hardware attribute prevents the end user from typing non-numeric data in a variable field.

EGL: EGL only supports the isDecimalDigit attribute for character variable fields. Numeric fields have a soft edit to ensure that only valid numeric characters and formatting characters such as a sign or decimal point are entered into the field.

Associated part needed for migration: Not applicable.

Figure 25. Map fields and the numeric hardware attribute

Migrating with the associated part Migrating without the associated part

The migration tool does the following:

  • For any or character variable on a map that specified the numeric hardware attribute, the tool includes isDecimalDigit = yes property.
  • For any character constant on the map, the tool always omits the isDecimalDigit property.
  • For any numeric variable field on the map, the tool always omits the isDecimalDigit property.

The migration tool does the same thing as mentioned in the Migrating with the associated part column.

Potential Problem: The end users will notice a slight change at run time because they will be able to type non-numeric data into numeric fields. EGL will issue a runtime error message if this occurs.

Possible Solution: Consider notifying your end users that this is an expected difference when changing from VAGen-generated code to EGL-generated code.

The same problem listed under the Migrating with the associated part column can occur. You can use the same solution.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]