How to check that who is holding the dataset

other mainframe interview questions

Moderators: Anuj Dhawan, Moderator Group

Post Reply
kapil agarwal
Member
Posts: 10
Joined: Thu Mar 05, 2009 5:50 pm
Location: Bangalore

How to check that who is holding the dataset

Post by kapil agarwal » Wed Mar 25, 2009 12:08 pm

Hi,

I have a question.
I have a jcl which need a dataset and that dataset is holding by any other running job or user. how can i know that which job or user holding that data set.

Thanks

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Wed Mar 25, 2009 12:22 pm

Use 'WHOHAS' command infront of that dataset.
Natarajan
Chennai

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Mar 25, 2009 5:35 pm

Hi Natrajan,

WHOHAS is a nicely written REXX for the purpose asked in this thread but it's not installed at every shop; unless Kapil has this on his shop it won't work - probably, "WHOHAS not found" would pop-up . . .
Regards,
Anuj

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Mar 25, 2009 5:45 pm

Hi Kapil,

As a general solution - try to open DSN using ISPF 3.4, when you get the message "Dats set in use" - hit PF1 twice.
Regards,
Anuj

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Thu Mar 26, 2009 1:18 am

Is this question being asked as to what an operator would do?

If so, he would enter the console command:

D GRS,RES=(*,DSN)

and would then take appropriate steps, which usually means notifying and, if necessary, cancelling the holder.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others