What I ended up doing was writing a simple RPG program that (1) calls an
SQLExecDirect front-end program we already have, to create a file in
QTEMP listing the spool files for jobs of the relevant name, (2)
shelling out a COMMIT with QCMDEXC, (3) walking through that spool file
in a DOW NOT %EOF() loop, and (4) shelling out a DLTSPLF for each
record, with another QCMDEXC.
Pity I couldn't (1) figure out how to have a WITH NC and a WITH DATA on
the same CREATE TABLE query, and (2) ride The Cycle through a file that
*has* to be USROPN (because it's created no earlier than *INZSR time).
Seems to me that allowing USROPN on a primary file would make perfect
sense, but then again, there's such a pathological and irrational hatred
of The Cycle among even RPG specialists that I'll probably never live to
see such a thing.
--
JHHL
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: Quick question: mass-delete of spool files?, (continued)
This mailing list archive is Copyright 1997-2026 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.