Last used date for an object?

5 pts.
Tags:
date
How do I get the last used date for an object?
1

Answer Wiki

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

DSPOBJD &LIB/&Object &ObjType

Use option 5

Page down to 2nd page and you will find your answer

==========

You can also do a DSPOBJ to a out file and then query that file. This is great when you do all objects in a library and sort the data by last used date to find obsolete objects.

Discuss This Question: 5  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.
  • TheRealRaven
    What about it? What problem are you having with it? What are you trying to do?
    34,465 pointsBadges:
    report
  • philpl1jb
    What system/environment? What type of object?
    54,090 pointsBadges:
    report
  • ToddN2000
    If this is for an AS/400 iSeries, then follow CharlieBrowns answer if it's for another type of system, we need more info as to system and & OS.
    131,645 pointsBadges:
    report
  • TheRealRaven
    It can depend on what the object type is and why 'last used date' is needed.

    Some object types don't update their 'last used date'. Some others may have a meaning that isn't quite what might be expected. Knowing the actual problem would allow a more precise answer.
    34,465 pointsBadges:
    report
  • TheRealRaven
    How do I get the last used date...

    That depends on a few things. What do you mean by "get"?

    Do you want to look at an object to simply see it's 'last used date'? Are you trying to process objects in a C program based on 'last used date'? A RPG program? COBOL? CL? (SQL? Query/400?)

    Are you needing the date for comparison in a program? In a query of some kind? (What kind of comparison? Equal dates? Greater/less than?)

    Is this for single, individual named objects? Or are you needing to build large lists of objects? If it's for many objects, is there a need to consider performance?

    Different methods would be appropriate for different needs.
    34,465 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: