How to find last RUN date of a Query on AS/400?

0 pts.
Tags:
AS/400
My system currently has 2000+ queries defined. Not all are active. Is there a way to determine the LAST RUN DATE of a query as opposed to the LAST CHANGE date. Most of our queries are not resaved (ie 'changed') each time they are run. Thanks in advance for your help.
ASKED: September 16, 2005  3:00 PM
UPDATED: November 11, 2009  6:12 AM

Answer Wiki

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

I suggest DSPOBJD thequery *QMQRY then use 5 or 8, there is a page that shows number of days usage and last day uses. I have not checked if info is correect for *QMQRY, but i am sure it is correct for *PGM.

After having targetted info for one query, uses DSPOBJD … OUTPUT(*FILE) for mass run

If necessary, you can turn number of days used to zero by
- rebuilding the object or
- changing this info with CHGOBJATR (available at http://jplamontre.free.fr/jpltools.htm)

Discuss This Question: 3  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
  • PaulThomas
    If you take a look at Chapter 4 of the CL Programming Guide (SC41-5721) It shows a table of object types and what causes their usage information to be updated. For QMQRY it states......"When used to generate a report OR when extracted or exported".
    0 pointsBadges:
    report
  • Njsammy
    Paul, pardon mebut where can I find that guide ... thanks in advance and appreciate the info
    5 pointsBadges:
    report
  • TomLiotta
    Easiest way to find the info is simply by looking at the section in the Information Center named 'Detecting unused objects on the system'. If you don't know how to find that section, try entering something like 'Detecting unused objects on the system' in the search field and pressing <enter>. In case you can't find the Information Center <==click here. 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