SQLIMS

Use the SQLIMS compiler option to enable the IMS SQL coprocessor and to specify Information Management System (IMS) suboptions. You must specify the SQLIMS option if a COBOL source program contains SQLIMS statements (EXEC SQLIMS statements).

SQLIMS option syntax

Read syntax diagramSkip visual syntax diagramNOSQLIMSSQLIMS(" IMS-suboption-string")

Default: NOSQLIMS

Abbreviation: None

If you specify the NOSQLIMS option, any SQLIMS statements that are found in the source program are diagnosed and discarded.

Use either quotation marks or apostrophes to delimit the string of IMS suboptions.

You can partition a long suboption string into multiple suboption strings in multiple CBL statements. For example:

//STEP1 EXEC IGYWC, . . .
// PARM.COBOL=’SQLIMS("string1")’
//COBOL.SYSIN DD *
       CBL SQLIMS("string2")
       CBL SQLIMS(’string3’)
       IDENTIFICATION DIVISION.
       PROGRAM-ID. DRIVER1.
       . . .
The IMS suboptions are concatenated in the order of their appearance. Thus in the proceeding example, the compiler passes the following suboption strings to the IMS SQL coprocessor:
"string1 string2 string3"

The concatenated strings are delimited with single spaces as shown. If multiple instances of the same IMS suboption are found, the last specification of each suboption takes effect. The compiler limits the length of the concatenated IMS suboption string to 4 KB.

When the LP(64) compiler option is in effect, the SQLIMS option is not supported. If the option is specified explicitly by the user, a diagnostic message is emitted.

Related concepts  
IMS SQL coprocessor  

Related references  
Conflicting compiler options