Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Help with user list

Help with user list

Help with user list

I hope this message finds everyone well.

I think the answer to my question will be pretty simple, however I cannot seem to find the answer anywhere. Is there a command I can execute to dump a list of enabeled users to a printer? I've tried coming up with a CL program, alas, I'm a nOOb and screwed that all up :)

Any help would be much appreciated.

RE: Help with user list


Use the command DSPUSRPRF and output it to a *OUTFILE. There's a field, UPSTAT, in the file that indicates if a user is enabled. UPSTAT = '*ENABLED' indicates an enabled user. You can run a query against the file and print a list.



RE: Help with user list

Great! I was trying to DSPUSRPRF USRPRF(*ALL) STATUS(*ENABLED) but the system was yelling that it didn't like that :)

If you could help me take this one step further, it would be much appreciated. Is there a command that will tell me when the last time an account was logged into? That way, all I can check all of the *DISABLED accounts to see how long ago the accounts were logged into, to decide whether to delete the profile or not.

RE: Help with user list

Run a query over the output file. All of these fields are character fields:


Previous sign-on century:   UPPSOC (0=1900-1999; 1=2000-2099, etc.)
Previous sign-on date:      UPPSOD (YYMMDD format)
Previous sign-on time:      UPPSOT (HHMMSS)
Status:                     UPSTAT


I'm not  

Nullum gratuitum prandium.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close