HP 3000 Manuals

The Library Module [ Micro Focus COBOL Language Reference ] MPE/iX 5.0 Documentation


Micro Focus COBOL Language Reference

The Library Module 

The library module allows you to specify text that is to be copied from a
source user-library.  This is usually created using any suitable source
text editor.

For ANS85 only:  It also allows you to replace text in the source
program.

COBOL libraries consist of files that contain source to be made available
to the COBOL system.  The effect of the interpretation of the COPY
statement is to insert text into the source program, where it will be
treated by the COBOL system as part of the source program.  All
occurrences of a given literal, identifier, word or group of words in the
library text can be replaced with alternative text during the copy
process.  The library module also allows you to access more than one
COBOL library at the time the object code is created.

The effect of the REPLACE statement is to substitute new text for text
appearing in the source program and have the new text treated by your
COBOL system as part of the source program (ANS85).



MPE/iX 5.0 Documentation