COBOL Language Support
For a list of supported PP2 COBOL dialects, see “Supported Operating Systems and Host Programming Languages” on page 26. COBOL statements generated by PP2 are accepted by the compilers for these environments. In addition, the COBOL statements generated by PP2 conform to these ANSI standard COBOL dialects:
The only exception occurs when the HOST(COBOLII) precompiler option is specified. In this case, PP2 recognizes and generates code that makes use of the COBOL extensions peculiar to VS COBOL II.
Specify either of two types of output formatting with the MARGINS (n,m) option:
This document refers to standard COBOL as ANSI in discussing program format. The default format is ANSI, with the margins set to 8 and 72.
The beginning column specification for MARGINS, n, must be 1 or 8; any other value causes an error.
By specifying MARGINS(1,m), PP2 follows terminal format rules and can be specified with a value up to 255.
The COBOL precompiler is executed by invoking module PPBMAIN.
For details, see Chapter 2: “Connecting to the Database and Invoking PP2.” For linkage details, see Appendix B: “Sample Application Linkage Procedure.”