Use the SQL compiler option to enable the DB2 coprocessor and to specify DB2 suboptions. You must specify the SQL option if your COBOL source program contains SQL statements and the program has not been processed by the DB2 precompiler.
SQL option syntax .-NOSQL-----------------------------. >>-+-----------------------------------+----------------------->< '-SQL--+--------------------------+-' '-("DB2-suboption-string")-'
Default is: NOSQL
Abbreviations are: None
If NOSQL is in effect, any SQL statements found in the source program are diagnosed and discarded.
Use either quotation marks or single quotation marks to delimit the string of DB2 suboptions.
You can use the syntax shown above in either the CBL or PROCESS statement. If you use the SQL option in the cob2 command or its variants cob2_j or cob2_r, only the single quotation mark (') can be used as the suboption string delimiter: -q"SQL('suboptions')".
related tasks
Programming for a DB2 environment
Compiling with the SQL option
Separating DB2 suboptions
related references
Conflicting compiler options