Previous Topic: When to Delete an Existing PlanNext Topic: Specifying Processing Options in PL/I, C, and Assembler


Coding Preprocessor Options in COBOL

To pass options to the Preprocessor, you must code the options on comment lines preceding COBOL's IDENTIFICATION DIVISION statement.

Each comment line specifying Preprocessor options must have an asterisk (*) in column 7. Immediately following the asterisk, you must enter $DBSQLOPT as shown in the following example:

Input
Column
 ....+....1....+....2....+....3....+....4....+....5....+....6....+....7..
       *$DBSQLOPT option1=value1 option2=value2 . . .
        IDENTIFICATION DIVISION.
               .         .
               .         .
               .         .

When you code Preprocessor options on the comment lines, you can enter the options in any order as long as you adhere to the following rules:

  1. Options must be coded between columns 18 and 72, inclusive.
  2. No option can be continued from one line to the next, that is to say, the option keyword and assigned value must be coded on the same line.
  3. Options must be separated from each other by one or more spaces.
  4. Each option you code must be in the form:
    option=value
    

All options which you enter on the comment lines are edited. The Preprocessor uses the default value for an option in the following situations: