This is an iSeries (or i5, or AS/400, or whatever IBM decides to name it tomorrow) spooled file housekeeping utility written in Java and XML.

You may view or download the source code here:

The following third-party libraries are already bundled with the above ZIP download and are required for execution, but in case you’re interested in latest versions:

Once you’ve downloaded JTOpen and JDOM, look for jt400.jar and jdom.jar respectively.

You’ll notice in the source code that it requires a configuration file to function. Refer to file config.xml in /bin folder. Sample configuration description as follows:

/config/host: iSeries IP address or 127.0.0.1.
/config/user: iSeries user name.
/config/pwd:  iSeries password.

/filter/attributes/outq:     Output queue to housekeep.
/filter/attributes/user:     Spooled file user or *ALL.
/filter/attributes/retain:   Number of days to keep.
/filter/attributes/userdata: User data of spooled file.

You can specify multiple nodes of /filter/attributes to housekeep different output queues with different attributes, such as user name, user data, or retention period for example.

In /filter/attributes/outq you can specify output queue objects such as QEZJOBLOG.OUTQ using a valid IFS path for example.

This program may not run very fast, but it’s easy to configure with XML. It was originally written for pure pleasure, now used in production. So it’s got to work.

Use at your own risk.