Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

deleting spool file programmatically

20 views
Skip to first unread message

Mike C

unread,
Mar 7, 2003, 5:40:03 PM3/7/03
to
Would anyone know of a program to delete spool files by date or file
name programmatically?. (v4r5)
Thanks

AyEssForHundred

unread,
Mar 7, 2003, 9:50:43 PM3/7/03
to
When you say programmatically, what type of program are you wriring? You
can create a CL program that will run the DLTSPLF command, with some date
parms. We have a job that runs nightly, so that we only keep 14 days worth
of spooled files on the system. This of course also has some file name
exclusions such as QPJOBLOG, and some user restrictions so it doesn't
delete any of the Operators or Secofr's output.

Can't give you the source, but hopefully its somewhere to start.

Jay

Thomas Raddatz

unread,
Mar 8, 2003, 9:14:54 AM3/8/03
to
There is a sample RPG-III program in the "OS/400 API Appendixes" manual. The
command parameters are:

User profile name (*ALL)
Output Queue (*ALL)
Last Deletion Date (MMDDYY)

I converted the program to RPG-IV and changed the command to:

User profile name (*ALL)
Output Queue (*ALL)
Spooled file name (*ALL)
Age of spooled file (all spooled files older than X days are deleted)
Status (HLD RDY SAV *ALL)

Send me a note if you want a copy.

Thomas Raddatz.

PS: I am not in the office next week. So it may take a while.

--
*=====================================================*

e-mail Adresse:
Thomas....@tools400.de

Homepage:
http://www.tools400.de

*=====================================================*

"Mike C" <mcr...@surlatable.com> schrieb im Newsbeitrag
news:77ffa767.0303...@posting.google.com...

0 new messages