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
 
In control-m how to make exclusive lock on a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sprasannapathy

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Tue Feb 24, 2009 9:02 pm    Post subject: In control-m how to make exclusive lock on a dataset
Reply with quote

Kindly help me. In control-m by Runtime scheduling parameter we make a dataset exclusive or sharable among the jobs but I could see a demerit that resources name only can be 1 to 20 characters. Please explain me have to define a dataset in Runtime scheduling parameter having length of more than 20 characters.

I have tried in Google to get it but all in vain. In our project we have

Code:
CONTROL      EXCLUSIVE-Job1   E                 
RESOURCE     INITIATOR            0001         




This means all the dataset used by the Job1 is EXCLUSIVE. At this point I need to have exclusive for only one of the dataset and make other datasets sharable.

Note:

For shared dataset we could see below screen

Code:
CONTROL      R-JOB2          S     
RESOURCE     INITIATOR            0001 


This means all the dataset used by the JOB2 is SHARABLE.


Thanks
Prasannaa S
Back to top
View user's profile Send private message

sprasannapathy

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Wed Feb 25, 2009 1:10 am    Post subject:
Reply with quote

kindly help me

Thanks
Prasannaa S
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Feb 25, 2009 1:27 am    Post subject:
Reply with quote

Hello,

I don't "do" control-m, but i believe a "resource name" is not the same as a "dataset name".

Suggest you talk with your scheduling people for clarification.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Feb 25, 2009 4:17 am    Post subject:
Reply with quote

Hi,

A Control resource-name is just a user supplied descriptive name of 1 through 20 characters used to identify the resource.


Gerry
Back to top
View user's profile Send private message
sprasannapathy

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Wed Feb 25, 2009 1:54 pm    Post subject:
Reply with quote

Thanking you for help. I will check with control-m peoples and get back

Thanks
Prasannaa S
Back to top
View user's profile Send private message
sprasannapathy

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Wed Feb 25, 2009 5:52 pm    Post subject: Reply to: In control-m how to make exclusive lock on a datas
Reply with quote

Hi,

I enquired with operations. They are not sure about it. I can understand it is a user supplied name. Please kindly guide me how to add the dataset/ handle the user supplied name.

Thanks
Prasannaa S

Kindly help me. I have gone through control-m document but I could see resource name is a user defined name. It is not clear how to define, where to define, how to add the datasets to the user defined name.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Feb 26, 2009 6:59 am    Post subject:
Reply with quote

Hi,

lets say you have a payroll file which belongs to application XXX.

Now there are 2 jobs, JOBA and JOBB.

JOBA updates the payroll file.

JOBB reads the payroll file and can run anytime. It does not need to run after JOBA.

JOBA and JOBB cannot run at the same time as there would be an enqueue on the payroll file.

Using Control you can set up JOBA this way
Code:
CONTROL  XXX-PAYROLL          E


JOBB will require
Code:
CONTROL  XXX-PAYROLL          S


If a job requires a resource in exclusive state, it cannot share usage of that resource with another job (that is, the jobs cannot run in parallel)

eg

If JOBA requires exclusive control of a resource that is already in use by a different job, JOBA must wait until the other job frees the resource regardless of whether the other job is using the resource in shared or exclusive state.

if JOBA already has exclusive control of a resource, any job requiring that resource must wait until JOBA frees the resource,regardless of whether the job requires the resource in shared or exclusive state.

If a job requires a resource in shared state, that job can run in parallel with other jobs requiring the same resource in shared state.


Gerry
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Feb 26, 2009 8:05 am    Post subject:
Reply with quote

Hi Gerry,

And there would be no relationship between the the XXX-PAYROll resource and any dataset name, correct?

Quote:
It is not clear how to define, where to define, how to add the datasets to the user defined name.
The resource is what is enqueued rather than the dataset name. The jobs serialize on the resource. . . True?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Feb 26, 2009 9:28 am    Post subject:
Reply with quote

Hi Dick,

sorry for the delay in replying to you but I was having internet problems.

You are correct.

the resource name is just an arbitrary name for the dataset name, it's used internally in Control-M, once a job is submitted it flags the resource is in use in either share or exclusive mode.

If this resource is incorrectly coded in a job regardless of the dataset name, it will not be submitted if the resource has an exclusive state.



Quote:
JOBA and JOBB cannot run at the same time as there would be an enqueue on the payroll file.


By this I meant, if both jobs were submitted to the JES Q at the same time, there would a file contention on the MVS system.

Using the Control resource will avoid waiting for dataset messages and not holding up initiators.

Hopefully what I said makes sense.


Gerry
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Feb 26, 2009 10:30 am    Post subject: Reply to: In control-m how to make exclusive lock on a datas
Reply with quote

Hi Gerry,

Quote:
Hopefully what I said makes sense.
Yup, thanks icon_smile.gif

d
Back to top
View user's profile Send private message
sprasannapathy

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Fri Feb 27, 2009 12:04 am    Post subject: Reply to: In control-m how to make exclusive lock on a datas
Reply with quote

Thanking for reply.

Code:
CONTROL  XXX-PAYROLL          E



Let us consider the dataset PAYROLL.PS.FILE is used in the JOBA and JOBB. Kindly explain what is relation between the user defined name XXX-PAYROLL. Please guide me

• How to define the user defined name XXX-PAYROLL

• Where to define the user defined name XXX-PAYROLL

• How to add the datasets PAYROLL.PS.FILE to the user defined name XXX-PAYROLL


Thanks
Prasannaa S
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Feb 27, 2009 2:05 am    Post subject:
Reply with quote

Hello,

Suggest you re-read the info above. . .

Datasets are NOT defined to the resource.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Control-M restart instruction sonaliingle CA Products 2 Tue Nov 28, 2017 5:05 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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