VS COBOL II programs
use a different copy of WORKING-STORAGE for each call under the
VS COBOL II run
time, however, under
Language Environment the
same copy of WORKING-STORAGE is used for each call. These different situations
occur when the following conditions are true:
- Compiled with the RENT option
- Dynamically called from OS/VS COBOL, VS COBOL II, IBM COBOL,
or Enterprise COBOL programs
- Fetched and called by C
In addition, the programs enter their initial state when run under the
VS COBOL II runtime library.
However, when running under
Language Environment the
programs are entered in their last-used state, unless there is an intervening
CANCEL.
For additional information on interlanguage communication between COBOL
and C, see Language Environment Writing Interlanguage Applications and
the IBM C/370 Migration Guide.