You can't STOP this date from being changed, but you could take a 'snapshot' of the objects, which WILL be changed by a save/restore or Journal apply, and then change their last-used dates back to the snapshot dates afterwards. It is a bit of a chore, but I can't think of another way.
You can use the QUSLOBJ API to list the objects --; view it here.
Note: I am using the European English V5R2 version of the API manual.
Comments from a Search400.com member:
Jean-Paul Lamontre has implemented the API in a CMD. You can find it at http://jplamontre.free.fr/AS400/CHGOBJATR.htm.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on RPG iSeries programming
Related Q&A from John Blenkinsop
When an error occurs on an IBM command, the diagnostic messages are sent first, then an escape message, which you can monitor. On AS/400 you see the ... Continue Reading
Learn how to 'append data to the file' with the FTP DIR command, and eliminate the hassle of having to end the FTP session and restart to view ... Continue Reading
RPGIV will 'think of' incoming integer fields as binary, and then will redefine them in the program structures as PACKED. So, when you chain a record... Continue Reading