|
On 12-Aug-2015 13:00 -0600, Steinmetz, Paul wrote:
From AJS, we email many spoolfiles, some generated by wrkqry.All good input from everyone.
We use InfoPrintServer (PDFMAPE) to auto email the spoolfile by
setting the spoolfile HOLD attribute to *NO.
If the query results in "No records in query report", we do not
want to auto email the spoolfile.
Any of the below manual changes would stop this.
Is there an easy way to accomplish this automatically?
1) Set HOLD to *yes
2) Move spoolfile to different output.
3) Delete the spoolfile
The key when using InfoPrintServer is to interrupt the process
before the spoolfile hits the outq. Not easily done.
So here's some new logic that might work for all AJS jobs.
This would not work for spoolfiles created directly by an
application.
By default, have the spoolfiles set to HOLD *YES, thus will not be
emailed.
Create one new generic utility that would look for an "empty
spoolfile" If "not empty" change from HOLD yes to HOLD no, or
release the spoolfile.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.