Dear all,
Its my first time I submit a question so, please forgive me if I do something wrong.
My question is if it possible to have a detail job log from a query. I mean if I can see what files I have used or what criteria I have used.
Thank you
Lambros
If you mean that you wish to inspect the run time performance then you need to read the manuals.
There is a Query Optimiser which will attempt to improve the performace of queries by using existing acess paths where possible, and all sorts of other automagic.
Go to IBM.com and the Information centre, download the PDF manual(s), check the redbooks site, and spend a couple opf hours making yourself the site guru on querie, whether you use the venerable Query./400 or newer query management queries.
The information you get from the manuals is complete and accurate. The information you get here is based on users experiences. Both have their place, but you need the one in order to judge the other and arrive at a conclusion which is appropriate to your circumstance.
Dear all,
Thank you very much for your answers but it seems that there is misunderstanding. What I want is if there is a way to do DSPJOBLOG or something similar and to know what files a user used and if it is possible what criteria.
Thank you
Lambros
Lambros, the information you're looking for doesn't seem to be available via a job log.
I just took a regular QUERY/400 query, set the logging level to 4 00 *SECLVL, then ran it in batch. The resulting job log showed nothing along the lines of what you're looking for. Nor did I find anything in the Work with Queries that looked as though it would generate the information you're asking for. As CharlieBrown noted, PRTDFN(*YES) will provide you what you want, but it does so by appending the query definition to the top of the output. If you're trying to monitor your users surreptitiously this could be a problem.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 7  Replies