Coding SQLIMS statements
Delimit SQLIMS
statements with EXEC
SQLIMS
and END-EXEC
. The EXEC SQLIMS
and END-EXEC
delimiters
must each be complete on one line. Do not code COBOL statements
within EXEC SQLIMS
statements.
About this task
Code an EXEC
SQLIMS INCLUDE
statement to include an SQLIMS communication
area (SQLCA) in the WORKING-STORAGE SECTION
or LOCAL-STORAGE
SECTION
of the outermost program. The LOCAL-STORAGE
SECTION
is recommended for recursive programs and programs
that use the THREAD
compiler option.
Restriction: You cannot use
SQLIMS
statements
in object-oriented classes or methods.