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 Procedrue calling a cobol program having SQL statemen

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


Joined: 03 Feb 2003
Posts: 12
Topics: 5

PostPosted: Fri Apr 23, 2004 9:43 am    Post subject: Stored Procedrue calling a cobol program having SQL statemen Reply with quote

I am getting -927 when a stored procedure calls a cobol program having SQL's
I saw the meaning of -927 it says language interface. I link edited cobol program with DSNELI and Stored procedure as DSNRLI. Is there any problem with that. Please let me know the right way of link editing or compiling.

Thanks
Vreddy
_________________
Thanks
Vreddy
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Fri Apr 23, 2004 10:26 am    Post subject: Reply with quote

Vreddy,
Where is the SP being invoked from ? DDF or MVS
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Apr 23, 2004 10:28 am    Post subject: Reply with quote

Vreddy,

Try to be consitent and link-edit all your modules using DSNELI

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


Joined: 03 Feb 2003
Posts: 12
Topics: 5

PostPosted: Fri Apr 23, 2004 10:42 am    Post subject: Reply with quote

Kosulu,

do we need to link edit stored procedure also as DSNELI. Our shop is using standard JCL for stored procedures and it it is link editing to DSNRLI.

I am link editing db2-cobol as DSNELI and Stored procedure as DSNRLI.

question.

Can a stored procedure call a db2-cobol program. if so how to link edit and make it work.

Thanks
Vreddy
_________________
Thanks
Vreddy
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Mon Apr 26, 2004 1:28 pm    Post subject: Reply with quote

I have never really called an external program from a stored procedure but the manual says that it can be done. If you have linkedited you SP with DSNRLI, then that means you are using WLM managed address space for your SP. You can try link editing your called COBOL program also with DSNRLI and see if that works. I think the load library of your called COBOL program needs to be concatenated to the STEPLIB of the job running the WLM established Stored procedure address space.
And finally check whether the package of your called COBOL program is in the same collection as the package for your SP. If it is not so, then you probably have to invoke a SET CURRENT PACKAGESET before calling the COBOL program.

Regards,
Manas
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
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