× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 2018-10-27 7:42 PM, Roy Luce - Long Pier Solutions wrote:

I started running the DSPFD command on each file in a specific library but
now I've been told I can use the DSPFD command to produce an output file
containing a record for each file in a selected library. Among the
datapoints that I need are the Last Change Date and Time.


You need the DSPOBJD command:

DSPOBJD OBJ(MYLIB/*ALL)
OBJTYPE(*FILE)
DETAIL(*FULL)
OUTPUT(*OUTFILE)
OUTFILE(QTEMP/OUTFILE)

But it would be somewhat awkward to process the resulting file. Instead, you could use an SQL query.

Do the STRSQL command, and then enter this SQL statement, changing 'MYLIB' and '2018-10-13' as needed.

select objname, objattribute, change_timestamp, last_used_timestamp
from table(qsys2.object_statistics('MYLIB','FILE'))
where change_timestamp > date('2018-10-13')

Here's a list of all the fields you can see in the query:
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzajq/rzajqudfobjectstat.htm


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.