Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Geeting -924 when subprogram is called from IMS/Dc transac

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
javed132

New User


Joined: 08 Apr 2005
Posts: 3

PostPosted: Thu Aug 23, 2012 7:07 am    Post subject: Geeting -924 when subprogram is called from IMS/Dc transac
Reply with quote

Hi,

I have a IMS transaction which calls a sub-program A. Also This transaction calls another sub-program B which calls sub-program C.

The problem is that I am getting -924 for sub-program A and also for Sub-Program C.

Can anyone suggest how to get over this issue?? I have put the load in IMS load lib also but its not helping me.
Please respond to e-addr removed
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2012 9:12 am    Post subject:
Reply with quote

Hello,

Is this an IMS error or a DB2 error?

Did this ever work or is this some new (or newly modified) process.
Back to top
View user's profile Send private message
javed132

New User


Joined: 08 Apr 2005
Posts: 3

PostPosted: Thu Aug 23, 2012 11:42 am    Post subject: Reply to: Geeting -924 when subprogram is called from IMS/Dc
Reply with quote

-924 is a DB2 error. We are eveloping a new system where a IMS transaction A calls sub-program B,C.

Sub program C also calls another sub program D.

So for Sub-program D and sometimes for Sub-program B and C also we get -924 not sure why?

We ensured that we did a promote of all the programs to IMS TEST region and also ensured that load module is present in IMS loadlib,but nothing seems to work.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Aug 23, 2012 11:47 am    Post subject: Reply to: Geeting -924 when subprogram is called from IMS/Dc
Reply with quote

if You had read the manual You would have found that posting on a forum for such problems is a useless waste of time for everybody?

for You because the problem solution will be delayed

for us because we have to remind You about the proper way of doing Your job ...
do the manual reading on Your behalf, cut and paste the relevant message

here is an excerpt of the manual for the -924


Quote:
DB2 Version 9.1 for z/OS > Troubleshooting for DB2 > DB2 codes > SQL codes > SQL error codes
-924
DB2 CONNECTION INTERNAL ERROR, function-code, return-code, reason-code

Explanation
Connection to DB2® has failed because of an unexpected internal error, identified by the 'reason-code'.

System action
The statement cannot be processed. The connection to DB2 is not established.

Programmer response
The reason code is described in Codes. The requested 'function-code' and 'return-code' may provide additional information. Any attempts to issue SQL statements following the SQLCODE -924 will cause unpredictable results.

SQLSTATE
58006

Parent topic: SQL error codes


next time read the manual Yourself and speak to Your support

The 'function-code' and 'return-code' will provide to Your support the info needed to fix the problem
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 642
Location: Whitby, ON, Canada

PostPosted: Thu Aug 23, 2012 5:13 pm    Post subject:
Reply with quote

Is this the first ever use of DB2 by this transaction? If so, then the IMS region it runs it may not be set up to connect to DB2. Talk to your IMS sysprog.

Are the subroutines statically linked? If so the incorrect DB2 attachment facility may have been linked into the subroutine.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us