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

How to list the set of users who are using a same dataset?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Anbumazhavarayar

New User


Joined: 19 Jan 2007
Posts: 6
Location: Chennai

PostPosted: Wed Feb 14, 2007 10:44 am
Reply with quote

I want to compress a dataset for that i want all the users to close the dataset who are using that particular dataset? At first i want to give a message to the users to close the dataset. If someone kept the dataset opened i have to cancel their ID's after a 5 MIN delay. I have to do all these using CLIST

Can any one help me out in this matter

Thanks
Anbu

icon_rolleyes.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 14, 2007 12:32 pm
Reply with quote

Look for a REXX called WHOHAS. This REXX will provide you a list of users/jobs that hold the file. Then, Use TSO's SEND command.

O.
Back to top
View user's profile Send private message
Anbumazhavarayar

New User


Joined: 19 Jan 2007
Posts: 6
Location: Chennai

PostPosted: Wed Feb 14, 2007 3:03 pm
Reply with quote

ofer71 wrote:
Look for a REXX called WHOHAS. This REXX will provide you a list of users/jobs that hold the file. Then, Use TSO's SEND command.

O.



Thanks for your reply, I knew the command tso whohas and tsosend i want the rexx/clist for above two can you tell me the exact library where it will be present and i want to know how to cancel the TSO user Id

icon_confused.gif

Thanks
Anbu
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 14, 2007 6:09 pm
Reply with quote

WHOHAS is not a TSO command. It is a nice REXX which most shops installed/wrote. Look for its source in Google, or use ISRDDN to find your local version.

O.
Back to top
View user's profile Send private message
Anbumazhavarayar

New User


Joined: 19 Jan 2007
Posts: 6
Location: Chennai

PostPosted: Thu Feb 15, 2007 2:16 pm
Reply with quote

1) I tried to find the library which has WHOHAS and SEND using ISRDDN but i couldn't able to find it.Can anyone help me out to find it.

2) I want to know how to cancel a TSO user ID

Thanks
Anbu icon_confused.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Feb 15, 2007 10:41 pm
Reply with quote

Hello,

If you talk with your Operations or Syatem Support people they can tell you how to cancel a user.

Most sites do not allow just everyone to do this.
Back to top
View user's profile Send private message
Anbumazhavarayar

New User


Joined: 19 Jan 2007
Posts: 6
Location: Chennai

PostPosted: Fri Feb 16, 2007 1:40 pm
Reply with quote

Hi All,
My exact requirement is something like this
I have to get the users who are using a data set and give them a warning message to close the data sets, if someone is still using that data set i have to cancel their ID. All the above things should be automated.

I have a idea like if i get the code for whohas and send with the help of OUTTRAP i can store the variable (use rid) and can send a message to those users.

To see where the WHOHAS command exist there is a command Locate which will tell us in which library it is exist, when i tried, it is pointing a load library

Can anyone help me out to get the code for WHOHAS and SEND?
icon_cry.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Feb 16, 2007 10:39 pm
Reply with quote

Hello,

Our system does not have "whohas" installed. If it is in a loadlib, it is an executable program instead of a clist or rexx exec.

Instead of whohas, we can see who is in a dataset by:

In 3.4 type R in line next to the dataset you are interested in (you're not really going to rename it, you just want the "in use" error to be raised).

After receiving the 'dataset in use' error hit the F1 key twice and the userid of who ever has the dataset open will display on the screen.


To send a message to those users, use:
SEND ''TEXT'' USER('USERID LIST') NOW

If you do this from Option 6 (Command) you have more room to type.
Back to top
View user's profile Send private message
Anbumazhavarayar

New User


Joined: 19 Jan 2007
Posts: 6
Location: Chennai

PostPosted: Tue Feb 20, 2007 11:04 am
Reply with quote

Hi,

Thanks for your reply, is there any way to set a 5 minute delay for the messages we send using tso send.


Thanks
Anbu
icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Feb 20, 2007 8:26 pm
Reply with quote

You're welcome.

If you want to send a message telling people that the dataset is going to be closed for some reason, you probably want to send the message as soon as it is typed. Is there some reason to wait before sending the warning message.

Once sent you can wait 5 minutes before proceeding.

If you look in this forum (tso/ispf), there are some examples of "waiting" but i do not believe you need to go to this length.

Depending on what you are going to do to the pds, you might run a job overnight that does what you need (i.e. compress, backup, etc) and then would need no interruption of service to those using the pds.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top