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



Just a side note that is valid in VARPG (don't know about VB):  position 358
- 367 is blank if no files are opened in the client side.
We usually open a WKDUMMY00F (input no keys) just to get the current user.

HTH
Marco

--- Scott Klement <midrange-l@xxxxxxxxxxxxxxxx> wrote:

> 
> You COULD call the QSYRUSRI API with format USRI0300, but a much simpler 
> way is to use posiions 358-367 of the Program Status Data Structure 
> (PSDS).
> 
> At least, I'm guessing that you're using positions 254-263.  However 
> that's actually the user component of the job identifier.  The job 
> identifier doesn't change when you swap user profiles, so that'll be 
> inaccurate anytime you swap them (for example, in a network server 
> program).   Positions 358-367 are the "current" user profile, and will 
> change when the user profile changes.
> 
> Good luck
> 
> ---
> Scott Klement  http://www.scottklement.com
> 
> 
> 
> On Thu, 18 May 2006, Jim Franz wrote:
> >
> > How can I retreive the logged on user id when a pc VB program calls a
> rpgle.
> > I need to write an audit record of who accessed the record - and the
> rpgle
> > program data structure says QUSER called it.
> > Is there an api or some way to get logged in user.
> >
> -- 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.