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
 

 

File contention error for VSAM(KSDS)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: File contention error for VSAM(KSDS)
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 24, 2008 6:41 pm    Post subject:
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    Post subject: Reply to: File contention error for VSAM(KSDS)
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10254
Location: italy

PostPosted: Mon Nov 24, 2008 6:56 pm    Post subject: Reply to: File contention error for VSAM(KSDS)
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 24, 2008 7:17 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Nov 25, 2008 4:52 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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