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
 
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: 10308
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm

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