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
 
Exclusive control of dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Jasand

New User


Joined: 23 Jan 2009
Posts: 32
Location: Tamil nadu

PostPosted: Tue Feb 15, 2011 4:24 pm    Post subject: Exclusive control of dataset
Reply with quote

Hi,

Could somebody let me know how to get exclusive control of a dataset for a job ? (Any method other than using DISP=OLD to get the exclusive control of the dataset).

The issue with using DISP=OLD(Job A) is that, when another job(Job B) with DISP=SHR access is already running, there occurs contention between the 2 jobs. Please correct me if I am wrong.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Tue Feb 15, 2011 4:38 pm    Post subject: Reply to: Exclusive control of dataset
Reply with quote

all happens according to the ENQueuing rules of JCL

if You want exclusive control of a resource ( any resource ) You want exclusive control.
no more, no less, and if somebody else is using that same resource You will have to wait until that somebody else has released it
( the happening is commonly known as resource contention )

here are the links to the relevant jcl manulas
z/OS V1R6.0-V1R10.0 MVS JCL User's Guide
http://publibz.boulder.ibm.com/cgi-bin/ ... 0712160458
and here
z/OS V1R10.0 MVS JCL Reference
http://publibz.boulder.ibm.com/cgi-bin/ ... 0604022956

to avoid a visible resource contention use Your scheduler facilities to serialize
( the contention will still be there, but You will not get any console messages,
the only evidence will be found by running a contention/delay report)
Back to top
View user's profile Send private message
Jasand

New User


Joined: 23 Jan 2009
Posts: 32
Location: Tamil nadu

PostPosted: Tue Feb 15, 2011 4:44 pm    Post subject:
Reply with quote

Thank you for your quick response. Will check the manuals.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

PostPosted: Tue Feb 15, 2011 5:54 pm    Post subject:
Reply with quote

Enrico's answer is complete Jasand.

But I'm wondering, from the way you identified a seeming "problem" with DISP=OLD, exactly why you thought that behavior (having to wait for the DISP=SHR job to finish) was not what you wanted.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Tue Feb 15, 2011 5:58 pm    Post subject:
Reply with quote

I wondered that too, Phil, but I've learned there are some questions not worth asking ... that one got borderline! icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Tue Feb 15, 2011 6:05 pm    Post subject: Reply to: Exclusive control of dataset
Reply with quote

I sometimes wonder too... about my good character icon_biggrin.gif

really I sometimes answer in what I hope is an exhaustive way in order to,
answer one... speak to many
but sadly it looks like that most of the times it is not worth the effort icon_sad.gif
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 Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am

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