Skip to main content

Thank you for your help. 

Thank you for your help. 

Can you please be more specific about what it is that you are trying to achieve?

If you wish to use embedded SQL where the SQL statements lie between EXEC SQL and END-EXEC statements to access a DB2 database then there are a couple different ways to accomplish this.

1. Use the DB2 ODBC driver and use OpenESQL directives SQL(DBMAN=ODBC):  documented here:

2. Use the DB2 ECM and the directive DB2 which is documented here.

There are examples of using both in the Samples Browser which can be opened from the Visual COBOL Group on Start menu under Samples. Select category SQL and you will get a list of the available demos.

Thanks.


Thank you for your help. 

Chris, I used you point #2, and it works now.
Thank you very much.