Guardian Application Conversion Guide
Converting a COBOL85 Program to Run at a High PIN
Converting COBOL85 Applications
4–8 096047 Tandem Computers Incorporated
Using the Binder With
Converted Object Files
You cannot bind modules that have been compiled with the D-series compiler with
modules that have been compiled with a C-series compiler. If you compile any
module with the D-series compiler, you must also recompile any other modules that
you bind it with.
Converting a
COBOL85 Program to
Run at a High PIN
This subsection describes how to convert your COBOL85 program to run at a high PIN
under the D-series operating system. Figure 4-2 shows a typical application. The box
shows which processes this part of the conversion applies to. Converting a COBOL85
program to run at a high PIN applies to both of these processes.
Figure 4-2. Converting a COBOL85 Program to Run at a High PIN
$SRV
$REQ
COBOL85 Requester
Process
COBOL85
Server
Process
TACL
To convert your program, you must:
Select the Common Run-Time Environment (CRE).
Set the HIGHPIN object-file attribute (which tells the system that your program
can run at a high PIN).
Make sure that each library file your program uses also has its HIGHPIN object-
file attribute set (and is capable of running at a high PIN).
Declare PIN data items large enough to hold high-PIN values.
Convert calls to the COBOL85^COMPLETION and COBOLSPOOLOPEN utility
routines into calls to the COBOL_COMPLETION_ and COBOL_SPECIAL_OPEN_
routines.
Remove all ARMTRAP procedure calls.
Convert calls to the MYPID Guardian procedure to calls into the
PROCESS_GETINFO_ and PROCESSHANDLE_DECOMPOSE_ procedures.
These topics are described in the following subsections.