> 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
+---