Delete Old Output Files - JBSJ9120

Subsystem

Job Control and Scheduling

Purpose

The process is used to perform a bulk delete of job output files which, by virtue of their age, are deemed to be no longer required. Refer also to the Subsystem Specialist section.

Normally Run By

Scheduled to run automatically at regular intervals

Anticipated Frequency

Dependent on the institution's data storage and management practises

Update Process(es)

Physically deletes selected job output files

Reports

No reports are produced. A file listing all files deleted by this job is written to the 'CONTROL' directory (refer to the System Administrator) and is appended to each time the job runs (see file sample)

Related/Dependent Jobs

JBSJ9110 is used to delete obsolete job requests

 

Update Process

The process physically deletes job output files as follows:

  • files in the $TMP directory are deleted when they are more than 3 days old
  • files in the $OUTPUT directory are deleted when they are more than 21 days old
  • files in the $CONTROL directory are deleted when they are more than 14 days old

The $TMP, $OUTPUT and $CONTROL are environment variables specified in s_job_control. Refer to Technical Documentation for further information regarding environment variables.

Alteration to the age of the files being deleted requires the System administrator to alter the Unix shell script.

 

Run Details

This job is typically run:

  • as a standing request in an 'off-peak' run widow
  • as frequently as the institution's data management regime requires, although it is recommended that the job be set to run nightly

 

 

Job Parameters

There are no parameters associated with this job.