A COBOL run unit is a set of one or more programs that function as a unit at run time to provide a problem solution. A COBOL run unit is an independent entity that can be executed without communicating with, or being coordinated with, any other run unit except that it can process data files and messages or set and test switches that are used by other run units. A run unit can also contain program objects and service programs created from module objects that are created from the compilation of programs written in languages other than ILE COBOL.
In ILE, a COBOL run unit is composed of program objects and service programs that all run in a single ILE activation group. To preserve OPM COBOL/400 compatible run unit semantics, your ILE COBOL application must meet the following conditions:
On the other hand, if a particular ILE COBOL program object is known to be main program before your application is run, you can specify the *NEW attribute for the ACTGRP option when creating a *PGM object using the ILE COBOL program as the UEP. All other participating program objects should specify the *CALLER attribute for the ACTGRP option.
If these conditions are not met, there may be a control boundary that binds the scope of the STOP RUN so that the state of the entire application is not refreshed.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.