Find out which object is not saved

With SAVLIB, I have a message saying, "1 file is not saved" and I know the library name. How can I find out which object that was?
exhuserAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
tliottaConnect With a Mentor Commented:
Assuming you have the joblog available, that's the place to look. If it's not available, you can check the object descriptions of the files in your library to see which one doesn't have the same Save Date as the others.

So, for a start:
DSPOBJD OBJ( mylib/*ALL) OBJTYPE(*FILE) OUTPUT(*OUTFILE) OUTFILE(QTEMP/OBJ)

Open in new window

That creates a list of all *FILE objects in library "mylib". You can then run a couple SQL statements:
SELECT ODSDAT FROM qtemp/obj GROUP BY ODSDAT

Open in new window

That shows the various Save Dates for all of those files. You should see at least two dates listed. The latest date will be when all files but one were saved. The other date will be from the record for the file that wasn't saved on that date. (If it was never saved, it will be a blank value.)

And when you know what the Save Date value is, you can simply plug it into a SQL SELECT... WHERE... statement to see the full record.

Tom
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
Display the job log for the job doing the save.
0
All Courses

From novice to tech pro — start learning today.