-
Tool
Hallo,
da kann ich Dir dies vorschlagen:
Tips and Techniques: Delete Old Spool Files
**by Robert Cozzi, Jr.
Start cleaning up after yourself.
Published December*2004
It's the end of the year, so now is a good time to clean up your DASD. Often, I find that when I
create a compiler listing or sample report, I leave the corresponding spool file out there for what seems like forever. So I created the Delete My Old Spool Files (DLTOLDSPLF) command.
The DLTOLDSPLF command allows you to easily clean up older, unneeded spool files. You pass in the number of days old a spool file has to be before it is deleted and optionally a user profile name, and poof, they're gone!
To delete my own spool files that are at least 30 days old, I would run the
following command:
DLTOLDSPLF**DAYS(30)
Of course, you should only delete your own user profile's spool files, so the USRPRF parameter defaults to USRPRF(*CURRENT). But because we're programmers, we can, of course, delete almost anything we want (Sarbanes-Oxley, turn your head for a second). To delete all the spool files that are at least 60 days old for the user profile named BOB, you would run the following command:
DLTOLDSPLF**DAYS(60)*USRPRF(BOB)
Provided you have regular OS/400 or i5/OS authorization to these spool files, poof, they're gone!
I'm using the CRTSPLLIST() procedure from the xTools *SRVPGM to build the list of spool file entries. If you don't have that service program installed, you can call the QUSLSPL API, the prototype for which is included at the end of this article. Using the CRTSPLLIST procedure reduces the parameters that I need to specify. It also saves space in this newsletter and allows me to publish more powerful code with fewer statements. In a few weeks, I will present the Delete Old IFS Files (DLTOLDIFS) command, which deletes files from a specific directory of the IFS once they become a specified number of days old.
The source code for DLTOLDSPLF is available online, but I have reproduced it here.
The command definition source code for the DLTOLDSPLF command is listed below.
Im Anhang weiter
-
Moin Die Tamse,
geht auch einfacher und das sogar kostenlos:
unter http://www.help400.de gibt es als Freeware dasTool CLNOUTQ
Funktioniert einwandfrei und wird von mir schon lange eingesetzt.
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks