Query for users that have not signed on in 60 days or more?

20 pts.
Tags:
AS/400 administration
Display User Profile
DSPUSRPRF
User profiles
I need to write a query for users that have not signed on in 60 days or more. I used DSPUSRPRF to an outfile (field) uppsod gt '60' ? i think that is wrong. Thank you

Answer Wiki

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

Hi Rrockk2000

Fields that should be useful
Previous sign-on century: UPPSOC A 1
Previous sign-on date: YY UPPSOD A 6
Note UPPSOD is A6. it contains a value like 090217
YYMMDD. So you need to compare it with 081217 (for 2 months or you could get fancy and go for 60 days)
not with 60 and you are looking for dates that are less than 081217.
UPPSOC should contain a 1 (through 2050) a 0 indicates 19′ but you probably don’t need that,until the year 2100.

Phil

Discuss This Question: 2  Replies

 
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
  • Lovemyi
    or you could just run the GO SECTOOLS command menu and run the option as a report only to disable users that have not signed on in xxx days.
    2,310 pointsBadges:
    report
  • Bsd167
    From the Security Tools select option 4. Analyze profile activity and insert the Number of inactive days.
    65 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.

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