HP 3000 Manuals

Types of Processes [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation


HP COBOL II/XL Reference Manual

Types of Processes 

The compile-time processes are divided into three types.  These types are
edit processing, source input modification, and list and compilation
options.

The first two processes mentioned above are independent of the
compilation process.  In effect, they constitute a "first pass" on your
source program.  The output of these preprocessor functions is released
to the COBOL compiler.  This output is referred to as the expanded source
program.

The editing process merges lines from an optional textfile into your
masterfile and provides other functions such as deletion and replacement
of lines of the masterfile.  The end product of the editing process is a
single input stream.

The operating system's COBOL command, as well as the $EDIT and $INCLUDE
preprocessor commands, are used to perform these editing operations.

The source input modification process uses macros to modify your source
code.  This is done by using the $DEFINE preprocessor command to define
the macros, and then placing the macro name in your source code.  When
the source code is compiled, the definition of the macro replaces the
macro name.

List and compilation options are provided to allow you to obtain compiler
listings, source listings of the expanded source records, a symbol table
map, the object code, a cross reference listing of symbols and procedures
used in the source program, and a listing of statements appearing in the
PROCEDURE DIVISION (as well as the line numbers in which they appear in
the source code and their code offsets).  These options are available
through use of the $CONTROL preprocessor command.

Compilation options include warnings of possible error conditions,
limiting the number of compilation errors before halting compilation,
initializing[REV BEG] 
the RL file, identifying the compiled code as being a subprogram[REV END]
(dynamic or nondynamic etc.), enabling the operating system's debug
facility, setting bounds checking on table indices, subscripts, and[REV
BEG] reference modification, and flagging of HP extensions[REV END] in
the source program.  These options are also available through use of the
$CONTROL preprocessor command.



MPE/iX 5.0 Documentation