AS/400 User Profile Creation Date & Time

85 pts.
Tags:
AS/400 administration
AS/400 user profiles
We can find the user profile creation date and time as,

WRKOBJ OBJ(QSYS/USRPRF) OBJTYPE(*USRPRF)

Is the anyother way to find it?

Answer Wiki

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

You can use the DSPOBJD command, with the OBJTYPE as *USRPRF and send the output to a physical file.
Then, you may use the ODCDAT field to the creation date (in MMDDAA format) and ODCTIM field to the creation time. You can also field ODCRTU to know the user profile that created the profile.

Discuss This Question: 6  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
  • Vatchy
    You can also use the DSPOBJD command.
    1,410 pointsBadges:
    report
  • pdraebel
    If you have auditing turned on you can find User profile creation there. Use DSPAUDJRN or CPYAUDJRN on entry type CP.
    2,570 pointsBadges:
    report
  • Whatis23
    DSPOBJD OBJ(QSYS/userprofile) OBJTYPE(*USRPRF) DETAIL(*FULL) If you need to see multiple profiles, send the output to an *OUTFILE instead then you can run a query.
    5,665 pointsBadges:
    report
  • WallyPT
    You can use the DSPOBJD command, with the OBJTYPE as *USRPRF and send the output to a physical file. Then, you may use the ODCDAT field to the creation date (in MMDDAA format) and ODCTIM field to the creation time. You can also field ODCRTU to know the user profile that created the profile.
    55 pointsBadges:
    report
  • lozajo
    how can i get creation date, time and  state(enable/disable) ussing commands
    10 pointsBadges:
    report
  • TomLiotta
    If state is needed, RTVUSRPRF can be used to get the STATUS(). The creation date & time would still come from the object description, so two separate commands are necessary. Also, a list of objects can be created with DSPOBJD, and a list of user profiles can be built with DSPUSRPRF when multiple user profiles are accessed. The two lists can be joined by the user profile name. There is no single command that will get object attributes and user profile detail attributes at the same time. (You can create such a command if you want one, but there isn't much use for it.) -- Tom
    125,585 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