Rename Variables
The syntax for renaming variables is:
identifier: type_name renames declared_object;
Syntax Notes:
• The type_name must be an Embedded SQL/Ada type or a type name already declared to Embedded SQL and the declared_object must be a known Embedded SQL variable or constant.
• The declared_object must be compatible with the type_name in base type, array dimensions, and size.
• If the declared object is a record component, any subscripts used to qualify the component are ignored. For example, the preprocessor accepts both of the following rename statements, even though one of them must be wrong, depending on whether "emprec" is an array:
eage1: Integer renames emprec(2).age;
eage2: Integer renames emprec.age;