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
 

 

How can I find out who is using the dataset (PS) in ISPF?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Raju_Kulkarni

New User


Joined: 22 Apr 2005
Posts: 4

PostPosted: Fri May 06, 2005 3:08 pm    Post subject: How can I find out who is using the dataset (PS) in ISPF?
Reply with quote

Hello everybody,

I am trying find out the way to see who is using the dataset (PS) in TSO/ISPF.

Say for Example, I go to option 3.4 on ISPF priamary option Menu and try to edit dataset MY.DATASET and when I try to edit it, I get a message that "DATASET IN USE' .

can anybody help me how can find out who(User Id) is using the dataset

Thanks,
Raju
Back to top
View user's profile Send private message

notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Fri May 06, 2005 3:15 pm    Post subject:
Reply with quote

While getting the error message......Press PF1 twice....
It'll display the USERID who has opened that.

Regards
Tanden
Back to top
View user's profile Send private message
Raju_Kulkarni

New User


Joined: 22 Apr 2005
Posts: 4

PostPosted: Fri May 06, 2005 3:50 pm    Post subject:
Reply with quote

Tanden,

Thanks for your inputs.

The thing is that what you suggested here works fine for a Partitioned dataset (PDS) and doesn't work for PS (sequential Dataset).

I am looking for PS ....anyways thanks a lot for your response.


Can anybody throw some light on this.


Thanks,
Raju
Back to top
View user's profile Send private message
zatish

New User


Joined: 06 May 2005
Posts: 14

PostPosted: Fri May 06, 2005 4:09 pm    Post subject: TSODSN
Reply with quote

Go to Command level in TSO and give the following command

TSODSN 'Dataset Name'

This should help you out
Back to top
View user's profile Send private message
notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Fri May 06, 2005 4:19 pm    Post subject:
Reply with quote

Hi raju....

It works fine for me whether it is PS/PDS

Hope yu pressed PF1 twice....

Regards
Tanden
Back to top
View user's profile Send private message
Raju_Kulkarni

New User


Joined: 22 Apr 2005
Posts: 4

PostPosted: Fri May 06, 2005 4:23 pm    Post subject:
Reply with quote

Zatish,

TSODSN 'Dataset Name' doesn't work for me....can u explain it with little more details please.

It gives me a error message like invalid command...


Thanks,
Raju
Back to top
View user's profile Send private message
Raju_Kulkarni

New User


Joined: 22 Apr 2005
Posts: 4

PostPosted: Fri May 06, 2005 4:30 pm    Post subject:
Reply with quote

Tanden,

I rechecked it again ....It worked fine for me this time....I am wondering why it didn't work last time

The messages was saying ..'This option not valid for sequential dataset'

It does serve the purpose for me until I face any other exception

Thank you very much
Raju
Back to top
View user's profile Send private message
zatish

New User


Joined: 06 May 2005
Posts: 14

PostPosted: Sat May 07, 2005 5:05 am    Post subject:
Reply with quote

Probably TSODSN is a Clist
Back to top
View user's profile Send private message
LG

New User


Joined: 09 May 2005
Posts: 1

PostPosted: Mon May 09, 2005 4:44 am    Post subject: Re: How can I find out who is using the dataset (PS) in ISPF
Reply with quote

go to 3.4, type in the dsn name hit enter, beside the dsn type WHOHAS, cant remeber if its one word or 2, that should work
Back to top
View user's profile Send private message
rainhear

New User


Joined: 24 May 2005
Posts: 2

PostPosted: Thu Jun 16, 2005 6:26 pm    Post subject: Re: How can I find out who is using the dataset (PS) in ISPF
Reply with quote

[quote="LG"]go to 3.4, type in the dsn name hit enter, beside the dsn type WHOHAS, cant remeber if its one word or 2, that should work[/quote]
In our shop,we use 'WHOSGOT' beside the dsn instead.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 16, 2005 6:37 pm    Post subject:
Reply with quote

I'm sure that both WhoHas and TsoDsn are Clist.
To view from ISPF 3.4 who use a dataset Tanden's method is correct pressing twice F1 when message 'Already in use' appair.
To check if file is busy or not thru a Clist or a Rexx you can download from the net WHOHAS utility or TSODSN.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 16, 2005 9:46 pm    Post subject:
Reply with quote

For intrested user this is a PROC that can display you who is using a dataset through a console command:

Code:
PROC 1 DSN         
OPER               
D GRS,RES=(*,&DSN)
END               
EXIT   
Back to top
View user's profile Send private message
nagasri83

New User


Joined: 20 May 2005
Posts: 15
Location: chennai

PostPosted: Fri Jul 01, 2005 5:01 pm    Post subject:
Reply with quote

hi raju,

you can know who is using your dataset by giving 'WHOHAS' in the line command for that particular dataset and you can know who is using it


try it........

thanks,
Back to top
View user's profile Send private message
sendil

New User


Joined: 30 Jun 2005
Posts: 27

PostPosted: Mon Aug 08, 2005 3:54 pm    Post subject:
Reply with quote

TSO WHOHAS 'dataset name(full path)'
Back to top
View user's profile Send private message
sumanth_toom

New User


Joined: 15 Dec 2006
Posts: 6
Location: ..

PostPosted: Wed Jul 22, 2009 8:22 pm    Post subject: Reply to: How can I find out who is using the dataset (PS) i
Reply with quote

Use SYSDSN against the PDS or
TSO SYSDSN <file-name>
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jul 22, 2009 8:33 pm    Post subject: Reply to: How can I find out who is using the dataset (PS) i
Reply with quote

SYSDSN is NOT a standard TSO command:

TSO/E Command Reference.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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