VisualAge Generator to Enterprise Generation Language Migration Guide

Program flow EZE words

The left table column shows the VisualAge Generator 4.5 EZE word. The right column shows what the migration tool converts the EZE word to in EGL.

Figure 105. Program flow EZE words

EZE word in VisualAge Generator 4.5
EGL
EZECLOS This depends on the location:
  • If used as an I/O error routine, the migration tool converts EZECLOS to the following, within the try...end block:
    onException exit program;
     
    
  • Used anywhere else, including use as the true or false operand of a TEST or FIND, the migration tool converts EZECLOS to the following:
    exit program;
    
Note:
The exit program has a default return code of <ezeDataPrefix>.returnCode, which is the equivalent of EZERCODE. This default provides the same capability as VisualAge Generator.
EZEFLO
Note:
EZEFLO cannot be used in flow statements.
This depends on the location:
  • If used as an I/O error routine, the migration tool converts EZEFLO to the following, within the try...end block:
    onException exit stack;
     
    
  • Used anywhere else, including use as the true or false operand of a TEST or FIND, the migration tool converts EZEFLO to the following:
    exit stack;
    
EZERTN or EZERTN(return value)
Note:
  • EZERTN cannot be used in flow statements.
  • EZERTN(return value) cannot be used as an I/O error routine.
EZERTN -- This depends on the location:
  • If used as an I/O error routine, the migration tool includes the try...end block but omits the onException statement.
  • Used anywhere else, the migration tool converts EZERTN to the following:
    return;
     
    OR
     
    return(returnValue);
    
Note:
If the returnValue is EZESYS, see EZESYS for additional considerations.


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