EGL applications operate in a run unit much like that of ILE COBOL. EGL's run unit can be considered a subset of the ILE COBOL run unit because the COBOL run unit might exist before and persist longer that EGL's run unit.
EGL's run unit is bounded by the first EGL application on the iSeries program call stack for a specific job. Run units are scoped in a single job. As long as a EGL application is on the program call stack, an EGL run unit is active. Only one EGL run unit can be active in a job at any time. This is the most obvious difference between EGL run units and ILE COBOL run units.
Main or called programs applications can initiate a EGL run unit. EGL man programs can exist in a run unit only if it is the initiating application. Main programs cannot be called from an application that initiates a EGL run unit, even if it is called from a non-EGL program while a EGL run unit was active.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.