Unfortunately nothing is going to bee 100 percent correct. You could write a program to do it by asking for a print of the all of query definitions in all libraries. Then copy the spoolfiles generated to a combined database. The write a program to read this database and parse out the data.. it’s long, ugly and will still not give you everything you are looking for. You could then find the files being used.