Ask the Expert

Allow access to data from a stored procedure result set using COBOL or RPG

In reference to this question and answer from 2005: Does COBOL or RPG currently allow access to data from a stored procedure result set?

If yes, can you provide a link to a manual that shows COBOL syntax?
Stored procedure result sets are still not accessible to COBOL and RPG programs using embedded SQL as of V6R1. IBM is working on this support for the next release.

Besides using the SQL call level interface APIs, another solution is having the stored procedure place the result set in a global temporary table. Then, the COBOL and RPG programs can process the data in the global temporary table after the stored procedure call completes. This result set technique is covered in more detail in the following IBM Redbook: Stored Procedures, Triggers, and User-Defined Functions on DB2 UDB for iSeries.

This was first published in June 2009

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: