Guardian Application Conversion Guide
Converting a COBOL85 Program to Run at a High PIN
Converting COBOL85 Applications
096047 Tandem Computers Incorporated 4–9
Selecting the
Common Run-Time
Environment (CRE)
To convert your COBOL85 program to run at a high PIN, you must select the Common
Run-Time Environment (CRE) using the ENV compiler directive.
To select the CRE, specify the COMMON or LIBRARY option for the ENV compiler
directive. Place this directive before any source code lines in your program:
?ENV COMMON
The COMMON or LIBRARY option selects the CRE for the object file. The object file is
then compatible with other CRE object files (that is, other COBOL85, TAL, C, Pascal,
and FORTRAN object files that are compiled to run with the CRE). TAL object files
that have been recompiled with the D-series TAL compiler are also compatible even if
they are not compiled to run with the CRE.
The LIBRARY option also allows the object file to be placed in a user library.
The OLD option (the default option) causes the object file to be compatible with
C-series object files and other D-series object files that are compiled with the OLD
option specified.
The CRE allows a COBOL85 program to call and be called by other programs written
in COBOL85, C, Pascal, and FORTRAN, even if the main program is not written in
COBOL85. Thus, the CRE has these advantages:
A program can use the language that is best suited for a specific task. For
example, it can perform I/O operations in COBOL85 and then call a C or Pascal
routine to perform mathematical computations.
Routines of a program can share the standard input file, standard output file, and
execution log file even though the routines are written in different languages.
COBOL85 and FORTRAN routines can also share the same $RECEIVE file.
Error reporting and exception handling are provided in the CRE routines.
For more information about the CRE, including the requirements for binding
COBOL85, TAL, C, Pascal, and FORTRAN object files using Binder, refer to the
Common Run-Time Environment (CRE) Programmer’s Guide.