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



Scott,
I'm looking for a list of all users who have access to the system, and their
account isn't disabled.....regardless of whether or not they are signed in
to the system at that moment.

 

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Monday, November 27, 2006 5:45 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Users API


Hi Douglas,

I have been looking at a whole host of api's and so far haven't found 
the one I need.  We need to build a subfile list of all available, 
active users on the system for use in an internal security mechanism.

What defines a user as "available and active"?   Do active batch jobs 
count, or just interactive jobs?  I'm not sure what "available" means in
this context, either...  is that a user who is sitting on a menu?  Or
running a program?  (Or unmarried? heh.)

If you're looking for a list of the users who are signed on, try the List
Signed-On Users (QEZLSGNU) API.

If you're looking for a list of active jobs, try the List Job (QUSLJOB) API.


I thought QUSRTVUI would work but apparently it is object driven.


No, that's not related to user profiles.  That API is for user indexes.

You know how keyed files work?  They retrieve records using "key values" 
that are looked up very quickly in a file.  The way they can take a key
value and find it so quickly is by looking that key up in an "index".

What if you wanted to make your own indexes?  Ones that aren't part of a
file, but just keys that you use for some other purpose.  Maybe your program
has an array or subfile and wants keyed access to it, so it wants to build
an index over the data.

IBM makes indexes available to user-written programs (as opposed to the
operating system itself) using special objects named "user indexes" and
special APIs called "user index APIs". QUSRTVUI is one of those APIs.

QUSRTVUI has nothing whatsoever to do with user profiles or who is logged on
to your system.

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.