× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Douglas,

I hope you're overwelmed with the response so far. Here's even more information you can get on the user on the user using the QSYRUSRI API.

D SDS SDS
D User 254 263
*
d USRI0300_Size s 10i 0 Length receiver
D format s 8
D errcod ds
D bytpro 10i 0 INZ(256) Bytes provided for E
D bytava 10i 0 Bytes available (0=n
D msgid 7 Exception id
D rsrv1 1 Reserved
D msgdta 240 Exception data


d USRI0300 ds Receiver For QSYRUSR
d RETBYT_U 10i 0 Returned Bytes
d AVABYT_U 10i 0 Available Bytes
d Usprf 10 User Profile Name
d Usr_Descr 199 248 User Description


* Retrieve the User   name
*
c                   eval      USRI0300_Size = %size(USRI0300)

c call (e) 'QSYRUSRI' Retrieve User Desc
c parm USRI0300
c parm USRI0300_Size
c parm 'USRI0300' format
c parm User
c parm ERRCOD


c                   seton                                        lr

Regards,

Guy Henza
guyhenza@xxxxxxxxxxx

date: Mon, 15 Nov 2004 19:52:02 -0600
from: "D.W. Palme" <dpalme@xxxxxxxxxxxxxxxxxxxxx>
subject: Newbie question - Getting the userid with RPGLE

I am very new to RPG and I have been searching the net and
experts-exchange in an attempt to figure out how to acquire the userid
of the person signed in and running a program with RPG.

I thought I could do it the same way as with a display file but that did
not work..

Would someone provide me a tiny bit of assistance here or at least point
me in the right direction?

Thanks,

Douglas




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.