MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 3 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: Help - Cob/DB2 stored procs - multiple result sets
jcr

Replies: 5
Views: 6799

PostForum: Application Programming   Posted: Tue Mar 21, 2006 2:57 pm   Subject: Help - Cob/DB2 stored procs - multiple result sets
Thanks, but we can already determine the number of result sets returned. The DESCRIBE CURSOR statement populates the SQLDA with this information. SQLD contains the number of result sets. My issue is h ...
  Topic: Help - Cob/DB2 stored procs - multiple result sets
jcr

Replies: 5
Views: 6799

PostForum: Application Programming   Posted: Tue Mar 21, 2006 2:52 am   Subject: Help - Cob/DB2 stored procs - multiple result sets
Hi,

This is how it will work:

1. In the calling program, declare

01 LOCVAR SQL TYPE IS RESULT-SET-LOCATOR VARYING.

2. Call stored procedure using CALL statement.

EXEC SQL
CALL p ...
  Topic: Help - Cob/DB2 stored procs - multiple result sets
jcr

Replies: 5
Views: 6799

PostForum: Application Programming   Posted: Mon Mar 06, 2006 5:55 pm   Subject: Help - Cob/DB2 stored procs - multiple result sets
I am new to stored procs, as is the company I am working for. We will
be writing stored procs which may return any number of result sets.
After referring to the DB2 manuals etc, I have no trouble un ...
 
Page 1 of 1
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group