|
Hello Rich, The job information APIs - like the QUSRJOBI API, format JOBI0600, decimal offset 92 - can give you the 'Current user' of a thread/job. The QUSRJOBI API is documented here: http://as400bks.rochester.ibm.com/iseries/v5r2/ic2924/info/apis/qusrjobi.htm Best regards, Carsten Flensburg ----- Original Message ----- From: "Rich Duzenbury" <rduz-midrange@xxxxxxxxxxxxxxxxxxx> To: "ISeries List" <midrange-l@xxxxxxxxxxxx> Sent: Monday, March 21, 2005 8:27 PM Subject: API to retrieve 'current user'? > Hi everyone, > > I'm using the 'set to profile handle' api in a job to temporarily become > another user. > > A small issue is that RPG programs called after the profile swap still > report the original user in the status data structure, not the current > user. I currently have to call a CL program to do a RTVJOBA CURUSER to > retrieve the current user name. > > Question: Is there a direct API call that will retrieve the current > user?
As an Amazon Associate we earn from qualifying purchases.
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.