AS/400 query by date

60 pts.
Tags:
AS/400
How can I search a iSeries query by date?

Answer Wiki

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

I read your question as “..how can I find queries created within a certain period”.
Use the DSPOBJD command to create a temporary file with object information :

<pre>
DSPOBJD OBJ(mylib/*ALL)
OBJTYPE(*QRYDFN)
OUTPUT(*OUTFILE)
OUTFILE(QTEMP/myfile)
</pre>

Run query on the file and you ill find the field with the objects creation date.

Did I get your Q right?

Good luck
DanF

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
  • STCA
    Thanks "DanTheDane". It worked fine when I queried the file. "StefanTheSwede"
    60 pointsBadges:
    report
  • RossHowatson
    If you could try to QUERY the system database and find all objects of *QRYDFN. I do not have access to a machine which gives me display/query authority to what I believe is the master database (QADBIFLD in library QSYS) but if this table is the master table of everything on the system this table would always be accurate. By using this table you would have an accurate report of every object on the system.
    295 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