Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to write IDMS COBOL programs to access DB2?

COBOL db2 idms Programs write
0
Posted

How to write IDMS COBOL programs to access DB2?

0

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).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123