View previous topic :: View next topic
|
Author |
Message |
Anbumazhavarayar
New User
Joined: 19 Jan 2007 Posts: 6 Location: Chennai
|
|
|
|
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
|
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
Anbumazhavarayar
New User
Joined: 19 Jan 2007 Posts: 6 Location: Chennai
|
|
|
|
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
Thanks
Anbu |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
Anbumazhavarayar
New User
Joined: 19 Jan 2007 Posts: 6 Location: Chennai
|
|
|
|
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 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anbumazhavarayar
New User
Joined: 19 Jan 2007 Posts: 6 Location: Chennai
|
|
|
|
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?
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anbumazhavarayar
New User
Joined: 19 Jan 2007 Posts: 6 Location: Chennai
|
|
|
|
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
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|