VisualAge Generator to Enterprise Generation Language Migration Guide
VisualAge Generator: Assignment statements are permitted
for records and maps and result in a "move corresponding."
MOVE statements are permitted for items.
EGL:
Assignment statements can only be used for data items or for a byte-by-byte
move of a record. Assignment statements cannot be used for maps.
The move by name statement is required for a move
corresponding of records and maps. The move statement
without a modifier can be used for items, but assignment statements are
preferred.
Associated part needed for migration: Not
applicable.
Figure 42. Assignment statements
Migrating with the associated part
| Migrating without the associated part
|
To preserve as much common code as possible, the migration tool does the
following if both the source and target of an assignment or move statement are
unqualified, unsubscripted names:
- Checks the function's parameter list, local storage, and I/O object
to try to determine whether the source or target of an assignment or MOVE
statement is an item, record, or map. If the migration tool can make
the determination, it migrates as follows:
- To an assignment statement if the source or target is an item.
- To a move by name statement if the source or target is a record
or map.
- If the migration tool cannot determine the part type, it migrates
assignment and MOVE statements to a move statement without a modifier.
| This is handled the same as mentioned in the Migrating with the
associated part column.
|
Potential Problem: None. Test and generation
convert the move statement without a modifier to a VAGen MOVE
statement. This is an item to item move or a move by name (move
corresponding), depending on the actual source and target of the move.
Any program can use the function without modifying it.
| Potential Problem: None. The same situation
mentioned in the Migrating with the associated part column
applies.
|
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.