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

Jobs Contending with each other .


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
infotech58

New User


Joined: 07 Jul 2005
Posts: 31
Location: Mumbai, INDIA

PostPosted: Tue Dec 04, 2007 1:46 pm
Reply with quote

Friends,

I would appreciate your inputs for the following.

In our batch cycle four jobs (read only) A,B,C,D run in parallel and are using same program, PSB, PROC; and some time they abend due to contention of resources with each other. Could someone suggest me some way to avoid this contention ??
Could it be done by using four different PSB's with same access.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Tue Dec 04, 2007 5:21 pm
Reply with quote

Did you ask us about running the same PSB and job at the same time before this posting? Did we ask why?
Back to top
View user's profile Send private message
infotech58

New User


Joined: 07 Jul 2005
Posts: 31
Location: Mumbai, INDIA

PostPosted: Tue Dec 04, 2007 7:04 pm
Reply with quote

yes. I had asked. But that was a different problem. That was about splitting a job into four and running in parallel. I changed the design of that program and reduced the run time instead of converting that into multiple jobs running in parallel.

These jobs are already running in production and getting down oftenly. Any comments on this ??
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Tue Dec 04, 2007 7:12 pm
Reply with quote

Do these jobs have the same objective? If so, why are you running them parallel? If not, why are you using the same PSB? Each program should and MUST have it's very own PSB. You are getting yourself locked into contention with yourself.
Back to top
View user's profile Send private message
babai043
Currently Banned

New User


Joined: 19 Dec 2007
Posts: 19
Location: chennai

PostPosted: Wed Dec 19, 2007 4:52 pm
Reply with quote

If jobs are updating database, definatly jobs needs to run one by one,

Regards,
Srinivas Jala
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Dec 20, 2007 2:53 am
Reply with quote

Check the PROCOPT of the PSB. Also, if any of the programs uses a HOLD or a command code to prevent any other program to access a segment......
Back to top
View user's profile Send private message
Robert Clubb

New User


Joined: 05 Dec 2007
Posts: 1
Location: Dearborn Mi USA

PostPosted: Sun Dec 23, 2007 6:29 am
Reply with quote

Chances are contention is at the database level or in an external subsystem such as DB2. If that is the case, breaking them up into separate jobs and separate PSBs probably will not help.

You need to find out what is going on: If you have a monitor such as Omegamon you should see resource contention while they are running. If not, you can determine this by running the IMS log utility DFSERA10 using the DFSERA30 exit and specifying DEADLOCK against the type 67'FF' log records. An example is in the IMS SYSTEM Utilities manual.

If you don't see anything in after the log utility, try turning on the IMS Monitor.

External issues not only would include looking for such items as a deadlock or resource contention in DB2, you also need to look to see if this is a JES issue such as waiting on a common dataset with a DISP=OLD. Check the JES output for any data set messages. For DB2 or CICS, look in the logs or journals to see if there are any messages showing up.
Back to top
View user's profile Send private message
v4vicnme

New User


Joined: 25 Apr 2008
Posts: 1
Location: Mumbai

PostPosted: Fri Apr 25, 2008 9:31 am
Reply with quote

Can this not be solved by defining the same DBD more than once (based on the no of pgms using the PSB parallelly) ? If not, what is the reason behind defining PSBs that way ?
Back to top
View user's profile Send private message
Atul Tamboli

New User


Joined: 12 May 2008
Posts: 3
Location: Pune, India

PostPosted: Tue May 20, 2008 12:38 am
Reply with quote

I don't think your jobs are contending due to same PSBs. They must be contending due to same database(s) being accessed. This could be IMS, DB2, etc.

We have 15 jobs running parrallely 16 times a day and we hardly run into contention issues. These jobs use same PSBs and program. The key is that the each job accesses different partition of master database. Also there is some option that I don't remember that can make the PSB wait/retry in case of contention. You may want to explore it.

Another thing that you might want to research is the checkpoint frequency. The lower the frequency, more records are locked.

What is the abend you are receiving?

Thanks.
Atul
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top