I want to reterive all users list with last logon date inculuded(help me with the query)

5 pts.
Tags:
AS/400 queries
Query/400
V4R5
am running with AS400 iseries system V4R5.
ASKED: September 30, 2008  4:46 PM
UPDATED: August 10, 2010  1:59 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Display User Profiles to an Outfile
DSPUSRPRF USRPRF(*ALL) OUTPUT(*OUTFILE) OUTFILE(MYLIB/USRPRFS)

Create a Query to access MYLIB/USRPRFS and include the field UPPSOD, Previous Sign on Date.

Should be pretty simple,
Bill

==============================================================

Be aware that you need to define “last logon date” before you can be certain. A user profile might “logon” through FTP on a V5R3 system for example, but that logon <b>will not</b> be shown as the ‘Previous sign-on’ date and time.

There are many ways to “logon”. If you want to know if a user profile is in use, you cannot rely on the ‘Previous sign-on’ date and time.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following