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 

Stored Procedures:SQLDA and host variables

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
bakul
Beginner


Joined: 20 Sep 2004
Posts: 7
Topics: 4

PostPosted: Thu Sep 30, 2004 12:11 am    Post subject: Stored Procedures:SQLDA and host variables Reply with quote

When calling a stored procedure, if parameters are passed using host variables,how does the stored procedure actually receive them.Is an SQLDA structure created in that case?
I ask this question because I found conflicting information on the websites.
One website states that an SQLDA structure is created whenever a stored procedure is called and another says that SQLDA structure is used only when parameters are passed using SQLDA structure. Question
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Sep 30, 2004 5:13 am    Post subject: Reply with quote

bakul,

A stored procedure is works like as it it is a sub-routine. The parms you send are received in the linkage section. And if you look at the PROCEDURE DIVISION statement of a storec procedure, you will notice that you have a USING clause which essentially refers to the linkage section.

And where SQLDA come from? Unless your stored procedure is using dynamic sql, I don't see a reason as to why you need SQLDA

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bakul
Beginner


Joined: 20 Sep 2004
Posts: 7
Topics: 4

PostPosted: Thu Sep 30, 2004 7:24 am    Post subject: thanks! Reply with quote

Yes it does help!
Thanks a lot! Exclamation Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group