Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving rows from mainframe DB2 in VB app?

Status
Not open for further replies.

640646

Programmer
Dec 12, 2003
1
GB
Does anyone know whether it is possible for a VB application running on Windows to fetch rows using a cursor created by a mainframe stored procedure program(which it has just executed). Does anyone have example VB code?

Scenario as follows:

VB app (on Windows) connects to mainframe DB2 and excutes a stored procedure.

The stored procedure runs a SELECT using a cursor to produce a result set of multple rows. It does not FETCH any rows though.

The VB app needs to FETCH the rows to display in a Windows applications.

Can the VB app run an EXEC SQL ASSOCIATE LOCATOR followed by an EXEC ALLOCATE CURSOR then perform the FETCHes?






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top