CRPence | 12 May 01:19 2013

Re: Automation.

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
_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 
(Continue reading)

PaulMmn | 12 May 04:02 2013

Re: Automation.

The Robot folks have an "Age Output Queue" command.  When run against 
an output queue it adds a +01 to the end of the user description 
field for everything in the queue.  You also set a maximum number for 
the queue.  Every time the program runs the number is incremented. 
When the document reaches the number you've set, it's deleted.

It's a relatively simple process; you can probably write a program to 
do the same thing fairly easily; there's an API to retrieve the 
contents of the queue.

The way we have the command set to run all queues are 'aged' weekly 
and files disappear after 2 weeks; other queues are aged on a more 
frequent basis.  Some we have added to a "Never Age" list so the 
contents never disappear.

--Paul E Musselman

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@...
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@...
Before posting, please take a moment to review the archives