Retrieve AS/400 user profile list

5 pts.
Tags:
AS 400
SQL
How do I code SQL to retrieve user profiles that have not signed on in 60 days?

Answer Wiki

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

try 

DSPUSRPRF USRPRF(*ALL) TYPE(*BASIC) OUTPUT(*OUTFILE) OUTFILE(MYLIB/PROFILE)

Then SQL the file and check the century (UPPSOC)  and last sign on date (UPPSOD) fields


Discuss This Question: 1  Reply

 
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.
  • TheRealRaven
    It might be easy. Does this query succeed?

    SELECT USER_NAME,USRCLS,STATUS,
                DATE(PRVSIGNON)
           FROM QSYS2.USER_INFO
    If so, you might review columns that are made available through QSYS2.USER_INFO to see how you can use it.

    If your system is too old to have QSYS2.USER_INFO, it will be more complicated.
    24,405 pointsBadges:
    report

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.

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

Following

Share this item with your network: