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
Last Wiki Answer Submitted: March 12, 2010 2:27 pm by DanTheDane2,540 pts.
All Answer Wiki Contributors: DanTheDane2,540 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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.
Thanks “DanTheDane”. It worked fine when I queried the file.
“StefanTheSwede”
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.