Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AS400 user command

1,362 views
Skip to first unread message

Martin Folan

unread,
Jun 9, 1999, 3:00:00 AM6/9/99
to
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

Chris Bennett

unread,
Jun 9, 1999, 3:00:00 AM6/9/99
to
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)

Hope this was some help.
Chris R. Bennett
bennet...@worldnet.att.net

Martin Folan wrote in message <7jmp6q$d83$1...@fraggle.esatclear.ie>...

Njål Fisketjøn (Njal Fisketjon)

unread,
Jun 9, 1999, 3:00:00 AM6/9/99
to
On Wed, 9 Jun 1999 18:30:13 -0400, "Chris Bennett" <bennet...@worldnet.att.net> wrote:

>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

Paul Nicolay

unread,
Jun 10, 1999, 3:00:00 AM6/10/99
to
Hi Martin,

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.

Charles R. Pence

unread,
Jun 10, 1999, 3:00:00 AM6/10/99
to
Martin Folan wrote:
> 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

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.

Richard J. Serrano

unread,
Jun 15, 1999, 3:00:00 AM6/15/99
to
Yes, the command is DSPUSRPRTI. This will give you the user profile of who
is logged on.
Hope this helps.(Hope its what you are looking for, anyway!)


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
>
>
>


0 new messages