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



I have a case just like that right now and I am creating a more permanent
solution.

This is my basic concept:

I embed an SQL statement similar to this one:

SELECT * FROM QSYS2.OUTPUT_QUEUE_ENTRIES WHERE OUTPUT_QUEUE_NAME =
'TRANSFER74'

I can obviously select on numerous criteria like file name, user name, user
data, status, number of pages, job name, date (the returned datatype here
is a timestamp).

With the data I receive I can now select if the spool file is eligible for
deletion and then run (using the system API - or if you prefer the old
fashioned variant QCMDEXC) a DLTSPLF (delete spool file command).

I am building something that can run every night that will delete old
spoolfiles depending on various criteria and the number of days these are
allowed to remain on the system.

Say for job logs a week or two is sufficient whereas invoices should be
saved for 6 months or so.

Point is based on that SQL service it is very easy to pick out what you want
to act on!




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.