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

File contention error for VSAM(KSDS)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SanthamoorthyRajamani

New User


Joined: 06 Nov 2008
Posts: 10
Location: Chennai

PostPosted: Mon Nov 24, 2008 6:21 pm
Reply with quote

There are two different jobs usually ran at different time, which will use the same KSDS, then both the jobs are ended fine.
If both the jobs are ran at same time then both are ended with file contention error.
Is there any way to avoid this error without changing the Control-M schedule of the jobs?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Nov 24, 2008 6:41 pm
Reply with quote

What do the programs do, both read, both update, one read one update.

What business dependencies are there in the schedule, i.e. JOB1 must finish updates before JOB2 reads/updates.
Back to top
View user's profile Send private message
SanthamoorthyRajamani

New User


Joined: 06 Nov 2008
Posts: 10
Location: Chennai

PostPosted: Mon Nov 24, 2008 6:53 pm
Reply with quote

Both are in SHR mode in JCL and one program is used in read mode and other is update mode.

We don't have any business dependency between these jobs.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Nov 24, 2008 6:56 pm
Reply with quote

sharing a dataset makes the program, business related,
anyway are there any issues of data consistency , if not,
speak to the storage group to properly define/alter the shareoptions attribute of the vsam involved
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Nov 24, 2008 7:17 pm
Reply with quote

There may not be a business dependency between jobs, but the data is shared which IMHO makes this a business related issue as well as a data sharing issue.

Could be one of few things, SHROPTS is the first that springs to mind. Do you use RLS at your shop ? - need to talk to your storage gurus for the answer to that one.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 25, 2008 4:52 am
Reply with quote

Hi,

May be little stubborn nature of mine but would like to ask - Why do you have such a design at first place ?

And if this
Quote:
We don't have any business dependency between these jobs.
is true, trying making them predecessor/successor of each other as per your need.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Error when install DB2 DB2 2
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top