Choosing the DYNAM or NODYNAM compiler option
For COBOL programs that have EXEC
SQL
statements, your choice of the compiler option DYNAM
or NODYNAM
depends
on the operating environment.
About this task
When you run under:
- TSO or IMS: You can use either the
DYNAM
orNODYNAM
compiler option.Note that IMS and Db2® share a common alias name, DSNHLI, for the language interface module. You must concatenate your libraries as follows:
- If you use IMS with the
DYNAM
option, concatenate the IMS library first. - If you run your application only under Db2, concatenate the Db2 library first.
- If you use IMS with the
- CICS® or
the Db2 call
attach facility (CAF): You must use the
NODYNAM
compiler option.Because stored procedures use CAF, you must also compile COBOL stored procedures with the
NODYNAM
option.
Related tasks
Compiling with the SQL option
DB2® Application Programming and SQL Guide (Programming for the call
attachment facility)
Compiling with the SQL option
DB2® Application Programming and SQL Guide (Programming for the call
attachment facility)