MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to know if a particular user is currently logged in
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Sat May 22, 2004 9:54 am    Post subject: how to know if a particular user is currently logged in Reply with quote

hi ,

can anybody help me out in finding out whether a particular user whose LOGIN_ID i know is currently logged into mainframe or not.

thanx in advance
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sat May 22, 2004 12:47 pm    Post subject: Reply with quote

Pzmohanty,

There are many ways to find if the user is logged on or not. One simple way is SDSF. In DA menu of SDSF type pre OTHER TID*. The OTHER TID is the person's TId whom you want to check if he is logged on or not. If there is a job(just with the TID, no suffix at the end) running continously then the other person is logged on.

Another way is to send a message to the TID
Code:

TSO SE 'ARE YOU LOGGED ON?' U(OTHER TID)


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Sat May 22, 2004 1:07 pm    Post subject: Reply with quote

hi kolusu,

thanx a lot but when i go to SD -> DA & then issue command PRE TID
it shows me nothing , but if instead go SD -> ST & then issue command PRE TID then it shows me the TID with QUEUE being EXUCUTION. which indeed tells me that other person is logged in.

anyway thanx a lot
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Sat May 22, 2004 8:16 pm    Post subject: Reply with quote

"D U,U=theid"
Back to top
View user's profile Send private message
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Sun May 23, 2004 3:05 am    Post subject: Reply with quote

hi superk,

thanks 4 reply can u plz make ur reply more explanatory.

being beginner it is really tough to deduce something from ur reply.

thanks
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Maton_Man
Beginner


Joined: 30 Jan 2004
Posts: 123
Topics: 0

PostPosted: Sun May 23, 2004 7:25 pm    Post subject: Reply with quote

Quote:

thanx a lot but when i go to SD -> DA & then issue command PRE TID
it shows me nothing , but if instead go SD -> ST & then issue command PRE TID then it shows me the TID with QUEUE being EXUCUTION. which indeed tells me that other person is logged in.


Be warned, if you are in a sysplex then this may show the user as logged in but not necessarily on the system your are on. In that case kolusu's TSO SE would most likely not elicit a response. You need to check the SAff/Asys fields to make sure they are the system you are expecting.


Superk's contribution is an MVS command which you can issue in SDSF by prefixing the command with a / however not many people get granted this ability (at least not in secure shops!)
_________________
My opinions are exactly that.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Mon May 24, 2004 8:48 am    Post subject: Reply with quote

Security software can restrict what you can see in SDSF. I can see everything because I am a Techie, but our applications teams can only see their own address spaces/jobs. The chances are that if you cannot see other users on the system, then you have no access to console commands.
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Thu May 27, 2004 9:24 am    Post subject: Reply with quote

If you can't use SDSF for this, you can tell if someone is logged on and using ISPF by attempting (for example) to rename their profile dataset. ISPF will either prompt for the new name (if they're not in ISPF) or say 'dataset in use' if they are. Hitting PF1 twice will them confirm that it is them holding the dataset.

Make sure you don't actually attempt to rename the dataset if it's not in use - cancel out of the 'new dataset name' screen. Otherwise you'll probably have a logged RACF violation to explain!
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu May 27, 2004 9:55 am    Post subject: Reply with quote

Yikes! You would risk changing data you don't own just to see if someone is logged on? Shocked

Why not just check for the ENQ in ISRDDN?
Back to top
View user's profile Send private message Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu May 27, 2004 9:58 am    Post subject: Reply with quote

Better yet, why not just contact the Command Center and ask?
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Thu May 27, 2004 10:08 am    Post subject: Reply with quote

OK,
I'll explain more fully. I was using the 'R' option (rename entire dataset, not member) in an ISPF 3.4 dataset list. If the dataset is not in use, you should get the following screen:
Code:

.-------------------------------------------------------------------------.
.-------------------------------------------------------------------------.
|                            Rename Data Set                              |
| Command ===>                                                            |
|                                                                         |
| Data Set Name . . : @MVSNR.CLIST                                        |
| Volume Serial . . : CC0002                                              |
|                                                                         |
| Enter new name below:  (The data set will be recataloged.)              |
|                                                                         |
| ISPF Library:                                                           |
|    Project  . .                                                         |
|    Group  . . .                                                         |
|    Type . . . .                                                         |
|                                                                         |
| Other Partitioned or Sequential Data Set:                               |
|    Data Set Name . . . '@MVSNR.CLIST'                                   |
|                                                                         |
|                                                                         |
|                                                                         |
|                                                                         |
|                                                                         |
|                                                                         |
|                                                                         |
'-------------------------------------------------------------------------'
'

even if you don't have RACF access to the dataset. This is the screen you 'cancel out of' with PF3/END.
If the dataset is in use, you should get the 'in use' message because this check is done before the security check. This is how it works with RACF, but I would have thought ACF2 would do its checks in the same places.
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Thu May 27, 2004 10:10 am    Post subject: Reply with quote

NB The screen above was fine in 'preview' but it's gone all yukky now I've actually posted. I don't suppose it really matters.
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Thu May 27, 2004 10:39 am    Post subject: Reply with quote

semigeezer said:
Quote:

Yikes! You would risk changing data you don't own just to see if someone is logged on?


The 'risk' is typically getting a RACF violation, not changing the data. And if you assume you actually DID have access to the dataset, you would have to change the dataset name field and press ENTER instead of PF3 for anything to happen, otherwise you'd just get 'already catalogued'.

However, I agree it's not ideal and the ISRDDN method is much better. I wonder if any sites restrict access to this though?
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu May 27, 2004 4:23 pm    Post subject: Reply with quote

I worry about confirmations that use Enter because I tend to use type-ahead so much. Also, on development systems I suspect it is common to have groups defined that allow large groups of people access to each others' files. At least I know that individuals often give write or alter access to others on their teams. I've never heard of anyone disabling ISRDDN, though there is a setting somewhere to disable the ENQ functionality, presumably for use by sites that rent time to many companies, or maybe paranoid (and not too smart) government agencies.
Back to top
View user's profile Send private message Visit poster's website
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Sun May 30, 2004 6:29 am    Post subject: Reply with quote

hi all, thanx for all the important inputs............

while finding for the differnet ways we can achieve goal of finding whether a user is currently logged on or no , i found a simplest way........

just type TSO ST USERID.

if USER is currently logged then this command will dsiplay some jobs else it will show JOB NOT FOUND
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group