Rational Developer for System z
COBOL for Windows, Version 7.5, 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.

CBL/PROCESS statement syntax
Read syntax diagramSkip visual syntax diagram>>-+-CBL-----+--+--------------+-------------------------------><
   '-PROCESS-'  '-options-list-'  
 

You can start the PROCESS statement in column 1 through 66 if you don't 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 (COBOL for Windows Language Reference)


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)