IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

In control-m how to make exclusive lock on a dataset


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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
Reply with quote

kindly help me

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

Moderator Emeritus


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

PostPosted: Wed Feb 25, 2009 1:27 am
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: 1702
Location: Australia

PostPosted: Wed Feb 25, 2009 4:17 am
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
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
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: 1702
Location: Australia

PostPosted: Thu Feb 26, 2009 6:59 am
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

Moderator Emeritus


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

PostPosted: Thu Feb 26, 2009 8:05 am
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: 1702
Location: Australia

PostPosted: Thu Feb 26, 2009 9:28 am
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

Moderator Emeritus


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

PostPosted: Thu Feb 26, 2009 10:30 am
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
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

Moderator Emeritus


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

PostPosted: Fri Feb 27, 2009 2:05 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Dynamically build sort control statem... SYNCSORT 18
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
Search our Forums:

Back to Top