Skip to main content

Problem:

Net Express 5.0 supports "COPY"  but many of our COBOL programs use -INC  to include copybooks which throws a compiler error .  

Is there any directive we can use so that Net Express supports this?

Resolution:

The directive you require is LIBRARIAN.  The full directive detail is included below:

LIBRARIAN

Allows -INC statements in your program.

Syntax:

>>-.---.-.---------LIBRARIAN--"integer"-.-----><  

    -/- -.----.--LIBRARIAN------------

            -NO-

Parameters:

integer The level of support required.

1 -INC statements are ignored; that is, no error message is generated.  

2 -INC statements are processed.

Properties:

Default: NOLIBRARIAN

Phase: Syntax check

$SET: Any

Comments:

The -INC statement specifies a file for inclusion in the source program. The string -INC must be written as a contiguous sequence of upper case characters starting in column 1, followed by one or more spaces, and then, on the same line, by the name of a file containing COBOL source. This file is included in the program at the point where the -INC statement appears.

If you set NOLIBRARIAN, -INC statements are not recognized; in this case, an error message is generated.

If you set LIBRARIAN without specifying integer, LIBRARIAN"2" is set.

Old KB# 3948