If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Call SP from a Cobol-Db2-Cics program

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-03, 22:52
ranjir75 ranjir75 is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 13
Call SP from a Cobol-Db2-Cics program

Hi all,

I have a Cobol-DB2-Cics program that Invokes a DB2 Stored procedure in cobol in another DB2 subsytem. I am getting a sqlcode - 471 on the SQL CALL SP statement.

-471 INVOCATION OF FUNCTION OR PROCEDURE name FAILED DUE TO REASON rc

Can anyone please throw some light on this issue ? This has become a show stopper for my present activity.

Thanks in anticipation
__________________
Thanks
Ranjith
Reply With Quote
  #2 (permalink)  
Old 11-17-03, 23:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You need to get the Reason Code and look in the Messages and Codes manual.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 11-18-03, 01:34
ranjir75 ranjir75 is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 13
[Thxs for the reply.

I tracked the return code. It is 00E7900C.
"The WLM application environment name specified for the
user-written routine is not defined or is currently not available for DB2
use in the active WLM policy."

Here it is mentioning that the WLM is defined or active. But we are executing in SPAS environment.

Thats what really confusing. I have no clue..

Pls suggest.

Thxs
__________________
Thanks
Ranjith
Reply With Quote
  #4 (permalink)  
Old 11-18-03, 01:51
ranjir75 ranjir75 is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 13
[Thxs for the reply.

I tracked the return code. It is 00E7900C.
"The WLM application environment name specified for the
user-written routine is not defined or is currently not available for DB2
use in the active WLM policy."

Here it is mentioning that the WLM is defined or active. But we are executing in SPAS environment.

Thats what really confusing. I have no clue..

Pls suggest.

Thxs
__________________
Thanks
Ranjith
Reply With Quote
  #5 (permalink)  
Old 11-24-03, 16:38
cdlvj cdlvj is offline
Registered User
 
Join Date: Oct 2003
Location: San Antonio, Texas
Posts: 4
Smile

Look in your Create Procedure statements.
It will either have a statement

NO WLM ENVIRONMENT

or

WLM ENVIRONMENT <Name of WLM>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On