Q
Problem solve Get help with specific problems with your technologies, process and projects.

Make a spool file disappear

How can I make a spool file disappear after seven days? I'm on V4R5.

You can't set an expiration date for a spool file. Once it has been placed on an *OUTQ it will remain there until it is deleted.

You could write a program that utilizes the QUSLSPL API to gather up information about specific spool files and then within your program, delete any that are older than seven days.

I personally use BRMS/400 to archive spool files to tape and then remove them from the system. The BRMS/400 archive policies allow me to define which files are archived based on several different criteria, including the age of the spool file. The advantage here is that I can recover a spool file if the user decides they need it again.

There are also several third-party software packages that provide commands for working with spool files.

With a little research you should be able to come up with the perfect solution for your needs.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions--or help out your peers by answering them--in our live OS/400 discussion forums.


This was last published in March 2003

Dig Deeper on Past Releases

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close