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.
Dig Deeper on Past Releases
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.