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

IDsname....NODsExt-file++.............OccrLen+....................
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
eMail: rich_dotson@centuryinter.net

-----Original Message-----
From:   Scott, Shadrach [SMTP:sscott@hiu.edu]
Sent:   Tuesday, July 07, 1998 11:07 AM
To:     MIDRANGE-L@midrange.com
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
sscott@hiu.edu

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

application/ms-tnef


This thread ...


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

This mailing list archive is Copyright 1997-2019 by midrange.com 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].