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
 

 

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: 10231
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: 962
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: 7995
Location: Bellevue, IA

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: 10231
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 6 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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