× 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: Deleting spool files from java
  • From: "Shawn Church" <shawn@xxxxxxxxxxx>
  • Date: Thu, 1 Mar 2001 14:51:51 -0600

> Use the CommandCall object to execute the command DLTSPLF using the
*SELECT option.
>
> Joe

He has only job number, user, and job name.  DLTSPFL *SELECT requires that
SELECT(user device formtype userdata) be specified, which will delete
spooled files for the specified selection criteria (not for the specified
job/user/job number).  You might want to use the SpooledFileList() class
along with either setUserFilter, setUserDataFilter, etc. as appropriate to
generate a list of spooled files for the filtered user, user data, etc.
respectively.  Then you can traverse the list, instantiating a SpooledFile
object for each one, and then getJobNumber(), getJobUser(), getJobName(),
etc., comparing to your target job/user/job number.  Use
SpooledFile.delete() for each one you want to delete.

Shawn

>
> ---------- Original Message ----------------------------------
> From: CYBRT1@aol.com
> Reply-To: JAVA400-L@midrange.com
> Date: Thu, 01 Mar 2001 14:29:24 EST
>
> >We have a COBOL program that generates multiple spool files. I am using
JAVA and the SpooledFile class from the tool box to retrieve one of the
spool files. Is there a way to delete the rest of the spool files in the
queue I have the job number, user, job name.
>
> TIA,
> Tom
> +---
> | This is the JAVA/400 Mailing List!
> | To submit a new message, send your mail to JAVA400-L@midrange.com.
> | To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
JAVA400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner: joe@zappie.net
> +---
>
> +---
> | This is the JAVA/400 Mailing List!
> | To submit a new message, send your mail to JAVA400-L@midrange.com.
> | To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
JAVA400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner: joe@zappie.net
> +---

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.