IBM VS Cobol II Compiler Directing Statements

This section contains information on the IBM VS Cobol II compiler directing statements. For information on Compiler Options check this page out.

  • Basis
  • *CBL
  • *Control
  • Copy
  • Delete
  • Eject
  • Enter
  • Insert
  • Replace
  • Service Label
  • Skip1/2/3
  • Title
  • Use

  • BASIS Statement
    This extended source program library statement provides a complete COBOL program as the source for a compilation.
    *CONTROL (*CBL) Statement
    This compiler-directing statement selectively suppresses or allows output to be produced. The names *CONTROL and *CBL are synonymous. This statement is described in "Controlling the Output Listing" in topic 3.10.4.4.
    Copy Statement
    This library statement places prewritten text in a COBOL program. (For more information on what you need to do at compile time to bring in copied code, see "Using the COPY Facility" in topic 3.10.4.2.).
    DELETE Statement
    This extended source library statement removes COBOL statements from the BASIS source program.
    EJECT Statement
    This compiler-directing statement specifies that the next source statement is to be printed at the top of the next page.
    ENTER Statement
    The VS COBOL II compiler treats this statement as a comment.
    INSERT Statement
    This library statement adds COBOL statements to the BASIS source program.
    REPLACE Statement
    This statement is used to replace source program text. (For information on how to use the REPLACE statement see "Using the REPLACE Statement" in topic 3.10.4.3.)
    SERVICE LABEL Statement
    This statement is generated by the CICS translator to indicate control flow. It is not intended for general use.
    SKIP1/2/3 Statement
    These statements specify lines to be skipped in the source listing.
    TITLE Statement
    This statement specifies that a title (header) be printed at the top of each page of the source listing. (See "Listing Header in the Identification Division" in topic 3.1.1.1.)
    USE Statement
    The USE statement provides declaratives to specify the following:
    • Error-handling procedures--EXCEPTION/ERROR
    • User label-handling procedures--LABEL
    • Debugging lines and sections--DEBUGGING.