Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Abend-2 pgms in the same unit of work invoking the same pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Mon Jul 14, 2008 5:24 pm    Post subject: Abend-2 pgms in the same unit of work invoking the same pgm
Reply with quote

Techies,

I have a CICS program A linking to program B to retrieve some data from the database. The problem here is that Unfortunately program B is already invoked in the same unit of work by program c leading to a CICS abend.

Could you please throw light on as to why this is happening? Will there be an issue when a same program is invoked by 2 programs in the same unit of work at the same time?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jul 14, 2008 5:31 pm    Post subject:
Reply with quote

What's the CICS abend? CICS allows the same program to be invoked multiple times even at the same time, but there could be problems with the database piece. Locking is the most likely culprit.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Mon Jul 14, 2008 5:39 pm    Post subject: Reply to: Abend-2 pgms in the same unit of work invoking the
Reply with quote

No abend code was displayed. It hit the handle abend paragraph which is at the start of that program and displayed the error messages that we had set.

Even i think the same, but not sure of the exact reason of the abend.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jul 14, 2008 5:52 pm    Post subject:
Reply with quote

Did you save and display EIBRESP and EIBRESP2? They may be a clue as to what's going on.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Jul 15, 2008 11:59 am    Post subject: Reply to: Abend-2 pgms in the same unit of work invoking the
Reply with quote

Robert,

Quote:
Did you save and display EIBRESP and EIBRESP2


No. This is a production issue and hence we did not note those values. We were not able to create that scenario to test.

Ideally the EIBRESP will not be equal to zero! We have checked for EIBRESP after the link statement but i dont think that would have got executed because of the abend. The control directly went to the HANDLE ABEND paragraph.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jul 15, 2008 3:04 pm    Post subject:
Reply with quote

Program C doesn't call program A, does it? If so, I'd worry about recursion popping up.

What's the frequency of abend? If it's a rare abend, it's probably a timing issue and may be very difficult to resolve. If it happens sometimes but not that often, maybe writing state data to a TSQ before the link could help figure out the problem.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Jul 15, 2008 4:20 pm    Post subject: Reply to: Abend-2 pgms in the same unit of work invoking the
Reply with quote

Quote:
Locking is the most likely culprit.


Looks like locking is the culprit. SYNCONRETURN was not specified during the link which lead to the row being locked.

Shall post the complete solution once the abend is resolved.

Robert,

Thanks for all the help.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jul 15, 2008 4:42 pm    Post subject:
Reply with quote

Aaru: great to hear you've got a handle on it!
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us