| View previous topic :: View next topic |
| Author |
Message |
Meg Beginner

Joined: 08 Jul 2003 Posts: 44 Topics: 16
|
Posted: Wed Feb 11, 2004 9:58 am Post subject: SYSUID in REXX |
|
|
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 |
|
 |
Meg Beginner

Joined: 08 Jul 2003 Posts: 44 Topics: 16
|
Posted: Wed Feb 11, 2004 10:00 am Post subject: |
|
|
| I just found the anser myself that we have the same in REXX. I am sorry about the mess up. |
|
| Back to top |
|
 |
Maton_Man Beginner

Joined: 30 Jan 2004 Posts: 123 Topics: 0
|
Posted: Thu Feb 12, 2004 12:30 am Post subject: |
|
|
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 |
|
 |
Meg Beginner

Joined: 08 Jul 2003 Posts: 44 Topics: 16
|
Posted: Thu Feb 12, 2004 4:05 am Post subject: |
|
|
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 |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Thu Feb 12, 2004 4:13 pm Post subject: |
|
|
The corresponding ISPF variable is ZUSER _________________ The day you stop learning the dinosaur becomes extinct |
|
| Back to top |
|
 |
Maton_Man Beginner

Joined: 30 Jan 2004 Posts: 123 Topics: 0
|
Posted: Thu Feb 12, 2004 9:54 pm Post subject: |
|
|
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 |
|
 |
|
|
|