Is it possible to get the userid of the person running a sequencer "GetEnvironment("ISUSER")" this works in a job but when I tried using this in USERVARIABLE in a Sequencer Job the job wouldn't compile.
My question how can i get the USER in a sequencer @LOGNAME gives me the dsadm id which is running the ds server.
We are using LDAP authentication.
Thanks
Ejaz
GetEnvironment("ISUSER") in Sequencer
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
GetEnvironment() is only available in parallel jobs.
Please perform this test. In an Execute Command activity in a sequence execute the id command to find out the user that actually runs your jobs.
Then we may talk further about whether there's some easier way to determine that user's identity at run time.
Please perform this test. In an Execute Command activity in a sequence execute the id command to find out the user that actually runs your jobs.
Then we may talk further about whether there's some easier way to determine that user's identity at run time.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I am using parallel jobs.ray.wurlod wrote:GetEnvironment() is only available in parallel jobs.
Please perform this test. In an Execute Command activity in a sequence execute the id command to find out the user that actually runs yo ...
In the director logs I do see that ISUSER has my login id but I cannot get it into a uservariable so I can pass it on downstream
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Please tell us what the id command returns. You may be surprised.
There's no reason you can't execute a command to get the value of an environment variable, such as echo $ISUSER - that value will be available as the output value of the Execute Command activity - possibly with added linefeeds converted to field marks.
There's no reason you can't execute a command to get the value of an environment variable, such as echo $ISUSER - that value will be available as the output value of the Execute Command activity - possibly with added linefeeds converted to field marks.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
You are executing parallel jobs using a sequencer, which is NOT a parallel job...it is a Server job. GetEnvironment() is available only in a parallel transformer.
Would passing ISUSER as a sequencer parameter for the sequencer give the desired result? Add a new environment variable ISUSER and assign it the value $ENV in the sequencer parameter list.
Would passing ISUSER as a sequencer parameter for the sequencer give the desired result? Add a new environment variable ISUSER and assign it the value $ENV in the sequencer parameter list.
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: