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 

SYSUID in REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Meg
Beginner


Joined: 08 Jul 2003
Posts: 44
Topics: 16

PostPosted: Wed Feb 11, 2004 9:58 am    Post subject: SYSUID in REXX Reply with quote

In order to extract the system user ID through CLIST we can do it using the system variable SYSUID. I would like to the equivalent in REXX.

Thanks,
Meg
Back to top
View user's profile Send private message
Meg
Beginner


Joined: 08 Jul 2003
Posts: 44
Topics: 16

PostPosted: Wed Feb 11, 2004 10:00 am    Post subject: Reply with quote

I just found the anser myself that we have the same in REXX. I am sorry about the mess up.
Back to top
View user's profile Send private message
Maton_Man
Beginner


Joined: 30 Jan 2004
Posts: 123
Topics: 0

PostPosted: Thu Feb 12, 2004 12:30 am    Post subject: Reply with quote

That's quite alright...wanna share what you do?

You are probably getting the ISPF variable from a pool somewhere...no?

Rexx has the function userid() which will return the userid of the executor the Rexx.

eg. say userid()
_________________
My opinions are exactly that.
Back to top
View user's profile Send private message
Meg
Beginner


Joined: 08 Jul 2003
Posts: 44
Topics: 16

PostPosted: Thu Feb 12, 2004 4:05 am    Post subject: Reply with quote

Hi Maton_Man,
In Rexx there is a sytem varibale to get the user ID.
SYSVAR(SYSUID). IN clist we need to use &SYSUID while in REXX we need to use it alng with SYSVAR.
Meg
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Thu Feb 12, 2004 4:13 pm    Post subject: Reply with quote

The corresponding ISPF variable is ZUSER
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Maton_Man
Beginner


Joined: 30 Jan 2004
Posts: 123
Topics: 0

PostPosted: Thu Feb 12, 2004 9:54 pm    Post subject: Reply with quote

From the manual...

SYSVAR is a TSO/E external function which will return the value of SYSUID.

SYSUID is the user ID under which the current TSO/E session is logged on.
The SYSUID argument returns the same value that the USERID built-in function returns in a TSO/E address space.

Two ways to skin the same cat. Presumably you are passing the value of SYSUID between Rexx and CLIST otherwise userid() would not be a problem...
_________________
My opinions are exactly that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
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