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


  • Subject: Re: Delete Spool File Question
  • From: Martin Rowe <martin@xxxxxxxxxx>
  • Date: Thu, 1 Mar 2001 20:07:46 +0000
  • Organization: Jamaro

> -----Original Message-----
> From: CYBRT1@aol.com [mailto:CYBRT1@aol.com]
> Sent: 1 March 2001 2:51
> To: RPG400-L@midrange.com
> Subject: Delete Spool File Question
>
>
> Does anybody have a sample of CL Code to delete spool files out of a
> queue. I would like to loop through a queue in a CL program and delete
> each of the spool files related to a job number, Job name, Spool Number
> I pass to the CL.
>
> TIA
> Tom

As others have mentioned, you can use DLTSPLF to delete a single 
spoolfile or several, based on selection critera. You can extend this in 
a CL by a WRKOUTQ to *PRINT, CPYSPLF & RCVF (as also mentioned) or you 
can use the system APIs (QUSLSPL is the principal one) to identify the 
spooled files you want & process the entries (in a user space) in CL 
(hard) or RPG (easier). You could have a look at my PRGOUTQ or MOVOUTQ 
utilities for examples of the latter method. Tom Liotta 
(http://zap.to/tl400) has loads of code examples of using just CL to 
process system APIs if you want a CL only solution.

Regards, Martin

-- 
martin@dbg400.net / jamaro@firstlinux.net
http://www.dbg400.net  DBG/400 - DataBase Generation utilities 
Open Source test environment tools for the AS/400 / iSeries and 
misc commands (WRKUSROUTQ, CHKLVLCHK, PRGOUTQ, EXCSQL & more)
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.