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

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


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Reply with quote

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

Global Moderator


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

PostPosted: Wed Jul 22, 2009 8:33 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
Search our Forums:

Back to Top