You can place the following in the "I" specs to retrieve the user id:

I           SDS                                                   
I                                      254 263 USERID             

Rich Dotson
RT3 Consulting Services, Inc.
P.O. Box 126
Lorain, OH   44052-0126

Phone: 1-216-556-1710

-----Original Message-----
From:   Scott, Shadrach []
Sent:   Tuesday, July 07, 1998 11:07 AM
Subject:        whoami

I have 2 questions.

a) I need an RPG program I have written to be able to tell who is using
it. In other words I need to retrieve the program callers userid. Is
there an API I can use to do this? or a CL command? or ?

b) The second question stems from the first. I say I have written an RPG
program, I have actually started on my second this morning. I am
teaching my self RPG through the help of Judy Yaeger's book Programming
in RPG/400 second edition. It has been a good book to start but I am
ready for and RPG advanced features book or resource of some kind. I am
curious what book(s) are the essential RPG programmers reference books.
Do you just use the IBM RPG books that come on the softcopy CD-ROM or is
there a second party book that if you are going to be an RPG programmer
you gotta have. 

As usual thanks for sharing your wisdom. It is greatly appreciated.

Shadrach Scott

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to
| To subscribe to this list send email to
| To unsubscribe from this list send email to
| Questions should be directed to the list owner/operator:


This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].