× 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.



Why have the joblogs spool at all? We stopped doing that years ago.
WRKSYSVAL QLOGOUTPUT
We changed that to *PND.
Some job descriptions from IBM may have LOGOUTPUT(*PND) set also.
So when the job ends it may not be sitting with a status of
OUTQ
It may be sitting at a status of
JOBLOG PENDING
If you need to see the joblog you
5=Work with
10. Display job log, if active, on job queue, or pending
The key word being "or pending".

If you just have to have a spool file then it's a simple matter of
DSPJOBLOG job(...) OUTPUT(*PRINT)
And basically the only reason I can think of that might be to send to IBM.

And when you start using *PND it makes searching all your pending job logs across your entire system for a particular message really simple with
https://www.ibm.com/docs/en/i/7.4?topic=services-joblog-info-table-function

And if you're really into storing joblogs into some custom archive it's a lot easier to use the above function to output them to a DB2 file.

I fail to understand the fascination with spool files. After all, if you need to query a file do you do a CPYF OUTPUT(*PRINT) and look at the spool file or do you query the file directly?


Rob Berendt

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.