IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Creating IDMS Deadlock


IBM Mainframe Forums -> IDMS/ADSO
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
seahawk789

New User


Joined: 22 Feb 2010
Posts: 56
Location: Cochin

PostPosted: Fri Apr 11, 2014 5:47 pm
Reply with quote

Hi,

We have made a few updates to our COBOL code to internally restart our program retry the IDMS command when there is an IDMS deadlock eg. Error code - 1229. But usually this kind of scenarios occur only in production and does not normally comes up in test environment. Is there any way I can recreate this scenario in test environment ? I mean to get an explicit lock on the record (using dmlo or something) so that when program executes the statement will encounter the deadlock.
Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Apr 11, 2014 7:07 pm
Reply with quote

Hello,

To force a deadlock use 2 tasks that need the same 2 rows. Read anywhere about "deadlock" or "fatal embrace".

Then implement code that will force the condition.

This will work with every database engine i've used.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IDMS/ADSO

 


Similar Topics
Topic Forum Replies
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Creating CSV file from Variable recs ... DFSORT/ICETOOL 11
No new posts Creating a VB file PL/I & Assembler 10
No new posts Creating filelist ps file JCL & VSAM 2
Search our Forums:

Back to Top