How do I find out what users have not signed on within the last 90 days, and how many users are on the system?
Here is a tip on how to get all kinds of information about your user profiles.
Create an OUTFILE of all user profiles defined to the system, using the DSPUSRPRF command:
DSPUSRPRF USRPRF(*ALL) OUTPUT(*OUTFILE) OUTFILE(yourlib/USRPRF)
Use the "Display File Filed Description" command to see the field names available in the yourlib/usrprf OUTFILE:
Start getting answers to your questions by analyzing this OUTFILE.
You can see how many total user profiles exist on your system by looking at how many records are in the yourlib/usrprf file. Use the "Display File Description" command:
DSPFD FILE(USRPRF) TYPE(*MBRLIST)
To determine who hasn't signed on in the last 90 days, use SQL or the iSeries Query Utilities (STRQRY) to query the yourlib/usrprf OUTFILE:
Select fields: UPUPRF (User Profile Name) UPPSOD (Previous sign-on date: YYMMDD)
Sort on UPPSOD in ascending order. This will list all the user profiles in the order of the previous sign-on.
Note: If UPPSOD is "blank" then this user profile has never signed on.
Use query or SQL to answer just about any question you might have about user profiles on your system. All the data you need is now at your fingertips, in the OUTFILE yourlib/usrprf.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.
Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.
Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400
Dig Deeper on Implementation
Related Q&A from Ken Graap
Find out if log files can be omitted during a save without causing problems in a full restore. Continue Reading
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading