Wednesday, February 01, 2006

Compilation Options - Part #1

The VS COBOL II compiler prepares a VS COBOL II source program for execution by producing a machine-language object module. This object module contains the actual machine language which implements or carries out the instructions specified in the COBOL source program. (The object module produced by the compiler must be processed by the linkage editor before the program is actually ready for execution.) A single invocation of the compiler can compile an individual COBOL source program or a sequence of two or more separate source programs. The object programs which result from compiling more than one source program at a time may be link-edited into a single load module or into two or more separate load modules. The VS COBOL II compiler provides several additional services while compiling a program. These include: · producing a source listing · tayloring the content of the source listing (i.e., to include a sorted cross-reference of data-names, a map of the DATA DIVISION, a listing of the machine-language instructions that were generated, etc.). · setting literal delimiters · selecting a reserved word list · processing COPY, BASIS, and REPLACE statements · offering options to control object code generation, object code execution, and the compilers use of virtual storage · producing debugging information at run time · providing user-exits ADV: This is a COBOL compiler option. Format: ADV NOADV Abbreviations: None IBM-default: ADV ADV, which conforms to the ANSI standard, requests that the compiler add 1 byte to the record length to account for the printer control character when WRITE with the ADVANCING option is used. NOADV implies that the record length has already been adjusted to account for the printer control character. QUOTE/APOST: This is a COBOL compiler option. Format: QUOTE APOST Abbreviations: Q IBM-default: QUOTE QUOTE, which conforms to the ANSI standard, specifies that the double quotation mark (“) is to be the delimiter character for non-numeric literals. APOST specifies that the single quote mark or apostrophe (‘) is to be the delimiter character for non-numeric literals. AWO: This is a COBOL compiler option. Format: AWO NOAWO Abbreviations: NOAWO IBM-default: None AWO specifies that, for any file in the program which is physical sequential with blocked V-mode records, the APPLY WRITE-ONLY clause be in effect (even if this clause is not specified in the program).