Any help would be greatly appreciated
Regards
Martin Folan
RTVUSRPRF RTNUSRPRF(&USER)
Hope this was some help.
Chris R. Bennett
bennet...@worldnet.att.net
Martin Folan wrote in message <7jmp6q$d83$1...@fraggle.esatclear.ie>...
>If you are wanting to run the command from the command line... the command
>would be "DSPWSUSR" (Display workstation user). If you are running it from
>a CLP... use the "RTVUSRPRF" (Retrieve user profile command) and use
>"RTNUSRPRF" for the returned variable for the user ID. Your command would
>look something like this:
>
> RTVUSRPRF RTNUSRPRF(&USER)
>
Or you can use RTVJOBA
Njål Fisketjøn, FIGU DATA AS
n...@figu.no
http://www.robin.no/~nfisketj
Using DSPJOB will show the user on top of the screen.
If you need the value somewhere in a program, take a look at RTVJOBA (or at
the API).
Regards,
Paul
------------------
Martin Folan wrote in message <7jmp6q$d83$1...@fraggle.esatclear.ie>...
Hi,
I am trying to find a command on the AS/400 that will just return the user
name of who is logged on, a sort of "who am I" command.
Any help would be greatly appreciated
Regards
Martin Folan
The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, Merck & Co., Inc. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.
For programming... refer to earlier replies. For use at some interactive session, the SysRqs-3 effects DSPJOB which displays the USER <ie. not CURUSER as from RTVJOBA> on the screen, and SysRqs-7 effects DSPWSUSR which displays the job name with the USER, and I would infer, also the Current user. Also there is no need for a command line for either request when via the System Request function.
Regards, Chuck
All comments provided "as is" with no warranties of any kind whatsoever.
Regards,
Richard J. Serrano,
Palace Guard Software
444 W. Ocean Blvd Suite 1402
Long Beach, CA 90802
Tel (800) 762-3696
Fax (562) 435-0010
r...@pgsas400.com
http://www.pgsas400.com
"Security, Reporting, & Auditing Solutions for the IBM AS/400"
****************************************************************************
*********
Martin Folan <marti...@esatclear.ie> wrote in article
<7jmp6q$d83$1...@fraggle.esatclear.ie>...
> Hi,
> I am trying to find a command on the AS/400 that will just return the
user
> name of who is logged on,
> a sort of "who am I" command.
>
> Any help would be greatly appreciated
>
>
> Regards
>
> Martin Folan
>
>
>