Page 1 of 1

Retrieve User Name (If Not Using Atrium)

Posted: Sun May 08, 2011 7:59 am
by bsprehn
Is there a way to tell what User is running the program if you do not use Atrium? If so, how.

Re: Retrieve User Name (If Not Using Atrium)

Posted: Wed May 11, 2011 12:17 pm
by Greg
SDS positions 254-263 will give you the wrong user profile in a web environment. This is the “job start” user profile which is always QTMHHTTP on the web. What you’ll want to use is positions 358-367. This is the “current user profile” of the job which will give you who signed in.

If using the RTVJOBA command, try using the CURUSER parameter instead of the USER
parameter. This will make it work properly for you.

The 2 user profiles are always the same in a green-screen session, but always different on the web. Using “current user” will work in the green-screen, too.

D PSDS SDS
D JobStartUser 254 263A
D CurrentUser 358 367A

Re: Retrieve User Name (If Not Using Atrium)

Posted: Thu May 12, 2011 9:14 am
by bsprehn
Thanks, that worked.