Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Specifying compiler options with the PROCESS (CBL) statement

You can code compiler options in the PROCESS statement in COBOL programs. Code it before the IDENTIFICATION DIVISION header and before any comment lines or compiler-directing statements.

Read syntax diagramSkip visual syntax diagram
CBL/PROCESS statement syntax

>>-+-CBL-----+--+--------------+-------------------------------><
   '-PROCESS-'  '-options-list-'   

You can start the PROCESS statement in column 1 through 66 if you do not code a sequence field. A sequence field is allowed in columns 1 through 6; if used, the sequence field must contain six characters, and the first character must be numeric. When used with a sequence field, PROCESS can start in column 8 through 66.

You can use CBL as a synonym for PROCESS. CBL can start in column 1 through 70. When used with a sequence field, CBL can start in column 8 through 70.

Use one or more blanks to separate PROCESS from the first option in options-list. Separate options with a comma or a blank. Do not insert spaces between individual options and their suboptions.

You can use more than one PROCESS statement. If you do so, the PROCESS statements must follow each another with no intervening statements. You cannot continue options across multiple PROCESS statements.

Your programming organization can inhibit the use of PROCESS statements by using the default options module of the COBOL compiler. When PROCESS statements are found in a COBOL program but are not allowed by the organization, the COBOL compiler generates error diagnostics.

related references  
CBL (PROCESS) statement (Enterprise COBOL Language Reference)


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)