Skip to main content

Is there a simple step by step to use EXEC DB2 on Windows 10 with Visual Studio

  • October 26, 2017
  • 2 replies
  • 0 views

Thank you for your help. 

2 replies

Chris Glazier
Forum|alt.badge.img+2

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.