For COBOL programs that have EXEC SQL statements, your choice of the compiler option DYNAM or NODYNAM depends on the operating environment.
When you run under:
Note that IMS and DB2 share a common alias name, DSNHLI, for the language interface module. You must concatenate your libraries as follows:
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)
related references
DYNAM