MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to find which jobs used a Dataset at a given time

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
chandra
Beginner


Joined: 26 Sep 2003
Posts: 130
Topics: 36

PostPosted: Fri Nov 07, 2003 4:10 am    Post subject: How to find which jobs used a Dataset at a given time Reply with quote

Hi,

My job is abended because of dataset contention problem.

Want to know how to find all the jobs that were accessing this dataset at that time.

Thanks,
Chandra
_________________
Regards,
Chandra
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Fri Nov 07, 2003 6:18 am    Post subject: Reply with quote

TSO ISRDDN <enter>
ENQ <enter>
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Fri Nov 07, 2003 6:21 am    Post subject: Reply with quote

chandra,

A simple way to find the who is accessing the dataset is

1. Go to 3.4 and type in the dataset name
2. Try to browse the dataset. It would give you a message that the dataset is in use
3. Now press PF1 twice and you can see all the jobs/tid accessing the dataset

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Fri Nov 07, 2003 6:28 am    Post subject: Reply with quote

Oh! At THAT time? I thought, you wanted to know which jobs/users are currently using it.

The messages in JESMSGLG might tell you. You get messages of contention there.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Mike
Beginner


Joined: 03 Dec 2002
Posts: 114
Topics: 0
Location: Sydney, Australia

PostPosted: Tue Nov 18, 2003 7:31 pm    Post subject: Reply with quote

Your local freindly performance guys would be able to ascertain this from SMF records.
_________________
Regards,
Mike.
Back to top
View user's profile Send private message
Kautilya
Beginner


Joined: 24 Jan 2004
Posts: 8
Topics: 2

PostPosted: Sat Jan 24, 2004 4:15 am    Post subject: Reply with quote

Use TSO WHOHAS 'datasetname'
Back to top
View user's profile Send private message
Alain Benveniste
Beginner


Joined: 04 May 2003
Posts: 92
Topics: 4
Location: Paris, France

PostPosted: Sat Jan 24, 2004 7:24 am    Post subject: Reply with quote

Does the D GRS,C doesn't answer to your need ?
If you have RESOLVE the cmd F resolve,ENQ is also a good way and can be trpped by batch.

Alain
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Tue Jan 27, 2004 9:45 am    Post subject: Reply with quote

Kautilya said:
Quote:
Use TSO WHOHAS 'datasetname'

Just for info, this is not an IBM supplied TSO command, it is site-specific. For example, we don't have WHOHAS but we do have a command ZWHOHAS which we wrote to perform this function.
Back to top
View user's profile Send private message
zoobink
Beginner


Joined: 01 Feb 2004
Posts: 9
Topics: 1

PostPosted: Mon Feb 02, 2004 5:24 am    Post subject: Reply with quote

If the dataset is currently allocated then kolusu answer is correct.

If you need to know what had it allocated previosly then you need to interogate type 14 and 15 smf records if it is non vsam file or type 62 if it was vsam.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 699
Topics: 63
Location: USA

PostPosted: Tue Feb 03, 2004 6:01 am    Post subject: Reply with quote

zoobink,

Could you explain how to see these smf records.

Thanks,
Diba.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Tue Feb 03, 2004 6:19 am    Post subject: Reply with quote

Dibakar,

Please search before posting. Search the board for "smf" and you will find many topics.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group