× 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 think I managed to come up with a suitable vacuum-cleaner program, and I have those who suggested a CL program to thank: the suggestion of looping through the spool numbers was rather close: I looped through the JOB numbers instead:

PGM PARM(&JOBNUMC)
DCL VAR(&JOBNUM) TYPE(*DEC) LEN(6 0)
DCL VAR(&JOBNUMC) TYPE(*CHAR) LEN(6)
CHGVAR VAR(&JOBNUM) VALUE(&JOBNUMC)
LOOP:
CHGVAR VAR(&JOBNUMC) VALUE(&JOBNUM)
DLTSPLF FILE(QPRINT) JOB(&JOBNUMC/FOO/BAR)
MONMSG MSGID(CPF0000)
IF COND(&JOBNUM *LT 999999) THEN(DO)
CHGVAR VAR(&JOBNUM) VALUE(&jobnum + 1)
GOTO LOOP
ENDDO

(where FOO is the user, and BAR is the jobname).

It's quick and dirty, and unless you want it to sit there attempting to delete nonexistent spool files after it's already passed the leading edge of the job stream, you have to "SysRq 2" it after it does its job, but it managed to vacuum up the spool files at hundreds of times the speed you can do it manually, and thousands of times the speed at which they're breeding.

And if this nightmare starts to appear more frequently, it would be easy enough to generalize the thing; I already have it accepting a starting point (instead of starting from zero).

Thanks to all.

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.