×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




You can get the current user from the RPG program's status data
structure positions 358 through 367.  Job initiator is in positions 254
through 263.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Rich Duzenbury
Sent: Monday, March 21, 2005 11:27 AM
To: ISeries List
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?

Thank you.
--
Regards,
Rich

Current Conditions in Des Moines, IA
Overcast
Temp 46.4F
Winds out of the East at 14, gusting to 21mph


-- 
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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