Multiple Compilations - The *Process Statement; When Using Subprogram Linkage; With Segmented Programs; Maximum Number Of Programs - IBM 5280 Programmer's Manual

Distributed data system, cobol
Hide thumbs Also See for 5280:
Table of Contents

Advertisement

*PROCESS Statement
Multiple Compilations - The *PROCESS Statement
The *PROCESS statement allows you to compile more than one COBOL
source program in the same job; *PROCESS statements are required when
you use CALL statements in your source program to call other COBOL
programs; the called programs must be compiled with the calling program, as
shown in the following example:
*PROCESS LIST,XREF.
(first COBOL source module)
*PROCESS.
(second COBOL source module)
*PROCESS LIST,XREF.
(third COBOL source module)
You can specify a compiler option as a parameter in the *PROCESS
statement. Thus, you can vary thc options for each of the compilations started
by a *PROCESS statement. An option specified in a *PROCESS statement
will override the defaults set by IBM and the options, if any, you specify in the
job control statements of the host system.
When Using Subprogram Linkage
With Segmented Programs
When using subprogram linkage, place the program which is to receive control
initially as the first program of the programs to be compiled.
Only one program (the first program) can be segmented when compiling
multiple programs using the *PROCESS statement.
Maximum Number of Programs
A maximum of 10 programs can be compiled in the same job using
*PROCESS statements.
Format and Rules -
*
PROCESS
The format of the *PROCESS statement is:
*PROCESS options-list.
options-list is one or more of the keywords listed in the compiler options,
abbreviations and defaults table in figure 7.5.
Chapter 7. Compiler Job Procedures and Options
7- 7

Advertisement

Table of Contents
loading

Table of Contents