× 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.



On 10 May 2013 11:27, John Mathew wrote:
<<SNIP>>
For example: Deleting spool files which are older than 30 days.
<<SNIP>>

Since v5r4 there is a capability to establish within any Printer File objects, or via an override to a printer file, an Expiration Date\Days attribute. After any spool file reaches its expiration, a Delete Expired Spooled files (DLTEXPSPLF) command invocation will effect the deletion of that spool file. Existing spool files with EXPDATE(*NONE) however, which is likely to be all spool files on a system on which planned expiration has not already been implemented, will be unaffected.

Any printer files from which a spool file will be created could have an EXPDATE() specified [using also the DAYS() specification, whenever using EXPDATE(*DAYS) instead of an actual date value]. However any file spooled while an Override with Printer File (OVRPRTF) is in effect for that spooling request, could bypass the expiration setting that was previously established in the Printer File. Yet, any existing spool files can be modified using the Change Spool File Attributes (CHGSPLFA) command to establish a desirable setting.

IBM i 7.1 Information Center -> Printing -> Basic printing -> Managing printing -> Managing spooled files
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/rzalu/rzaludelexp.htm
_i Deleting expired spooled files i_
"You can use the EXPDATE or DAYS parameter on the Change Printer File (CHGPRTF), Create Printer File (CRTPRTF), Change Spooled File Attributes (CHGSPLFA), or Override with Printer File (OVRPRTF) command to make a spooled file eligible for deletion using the Delete Expired Spooled files (DLTEXPSPLF) command.

For example, the following command creates a job schedule entry which causes the DLTEXPSPLF command to delete all expired spooled files on your system every day:

ADDJOBSCDE JOB(DLTEXPSPLF) CMD(DLTEXPSPLF ASPDEV(*ALL)) FRQ(*WEEKLY) SCDDATE(*NONE) SCDDAY(*ALL) SCDTIME(010000) JOBQ(QSYS/QSYSNOMAX) TEXT('DELETE EXPIRED SPOOLED FILES SCHEDULE ENTRY')

Parent topic: _Managing spooled files_
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/rzalu/rzalumanspltasks.htm

_Related information_
Change Printer File (CHGPRTF) command
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/cl/chgprtf.htm
Create Printer File (CRTPRTF) command
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/cl/crtprtf.htm
Change Spooled File Attributes (CHGSPLFA) command
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/cl/chgsplfa.htm
Override with Printer File (OVRPRTF) command
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/cl/ovrprtf.htm
Delete Expired Spooled files (DLTEXPSPLF) command
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/cl/dltexpsplf.htm
"

FWiW, the BRMS also enables changing the expiration date for the spool files that have been saved:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/brms/expiresplf.htm
_i Expiring Saved Spooled Files i_
"Beginning with V5R4M0, BRMS provides a new Expiration view on the Add/Change/Display Spooled File List displays. You can use this view to tell BRMS to set an expiration date on the saved spooled files. ..."


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.