How to write IDMS COBOL programs to access DB2?
To access DB2 we use C(all) A(ttachment) F(acility) in the IDMS address space. The CAF operations are executed in MVS subtasks allowing the execution of other IDMS tasks while accessing DB2. See the attached Programmers Guide (Progr26.pdf) section 1 how to write IDMS COBOL programs to access DB2. You use DB2 syntax and precompiler. The only major difference with IBM DB2 program preparation is that VEGA stub is link-edited with the program instead of DSNHLI. These COBOL/DB2 programs are typically used as I/O modules that are called by ADS dialogs. In addition we provide an additional tool VG-ADS Precompiler (see ADS.pdf) that allows you to write DB2 SQL statements in ADS Process code. Precompiler generates the necessary code and work records to access DB2 (via CAF).