Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to automate delete of spool files 7 days old on AS400

Status
Not open for further replies.

Marleen

MIS
Apr 10, 2001
1
0
0
US
I want to delete spool files that are 7 days and more old. Is there an easy way to do this? I am fairly new to the AS400. I know just a little about CL. Can this be done with a CL script?
 
If I'm understanding you correctly. at a command line type in go cleanup.

Select opt. 1 change cleanup options.
On Job logs and other system output . . . . . . . 20 Key in the number of days you want to keep spool files. We have it set at 20 days.

Make sure you have a time for the cleanup job to start. Usually early morning like 3:00 am
 
Henrik Krebs has some postcard-ware that will do nicely for what you want to do. Go to Download the file and restore it to your as/400. You can delete files in any outq. Create a cl and execute the command for each outq. Schedule it to run daily.

Henrik will send you an email asking how you like the pgm. There is no charge. I use this daily to maintain some control over outqs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top