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 to list the set of users who are using a same dataset?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to list the set of users who are using a same dataset?
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: 2360
Location: Israel

PostPosted: Wed Feb 14, 2007 12:32 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Feb 14, 2007 6:09 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Feb 15, 2007 10:41 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Feb 16, 2007 10:39 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Feb 20, 2007 8:26 pm    Post subject:
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.    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
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


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