Problem solve Get help with specific problems with your technologies, process and projects.

Obtain information about your user's profiles

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:


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:


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.


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

This was last published in January 2004

Dig Deeper on Implementation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.



  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...