Guardian Application Conversion Guide

Converting Basic Elements of a COBOL85 Program
Converting COBOL85 Applications
4–2 096047 Tandem Computers Incorporated
Converting Basic
Elements of a
COBOL85 Program
This subsection describes conversion that applies to all COBOL85 programs you need
to convert to run under the D-series operating system, irrespective of what the
program does. Later subsections describe how to convert specific functions of your
programs, such as communicating with a high-PIN process.
This subsection discusses the following topics:
Using source declarations from the ZSYSCOB file
Declaring and using variables for high PINs, file-system error numbers, file names,
and process identifiers
Calling Guardian procedures
Converting for new reserved words
Running the COBOL85 compiler
Binding Converted Object Files
Figure 4-1 shows a typical application. The box shows which processes this part of the
conversion applies to. Converting basic elements of a COBOL85 program applies to
both of these processes.
Figure 4-1. Converting Basic Elements of a COBOL85 Program
$SRV
$REQ
COBOL85 Requester
Process
COBOL85
Server
Process
TACL
Using the ZSYSCOB
Declarations
Tandem provides COBOL85 source declarations of data items and structures for
Guardian procedures and system messages in the ZSYSCOB file. This file is typically
found on the $SYSTEM.ZSYSDEFS subvolume. Contact your system manager to find
the location of this file on your system.
To use the declarations in this file, include them in your source code using the COPY
statement. For example, this statement copies the entire ZSYSCOB file:
COPY "$SYSTEM.ZSYSDEFS.ZSYSCOB".