Retrieve User Name

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
nasimul
Participant
Posts: 37
Joined: Wed Jan 25, 2006 1:38 am

Retrieve User Name

Post by nasimul »

How to retrieve user name who triggers the the datastage job?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

System variable @LOGNAME
Environment variable reference $USER
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nasimul
Participant
Posts: 37
Joined: Wed Jan 25, 2006 1:38 am

Post by nasimul »

I typed system variable @LOGNAME, but it is not accepting.
krisna
Participant
Posts: 77
Joined: Tue Apr 08, 2008 11:33 pm

Post by krisna »

Use System variable @LOGNAME in datastage job itself.

To my knowledge we can use this system variable only in server jobs.
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

You can get the information of the user who triggered the job in the datastage administrator. If you want to use it in the datastage jobs you can use "who" and parse the result to get the user id.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
Post Reply