Every JI job has a log file, and each time a job is run new entries are added to the log file. The job logs should be purged from time to time to prevent the logs from becoming too large, or
configure automatic purge options to automatically remove the specified job log entries each time a job is run. Purging unwanted log entries will also improve the responsiveness of DataStage client.
To change the auto-purge settings so all JI jobs use administrator defaults
- Invoke the DataStage Administrator client
- Select the Projects tab
- Click on the project to be changed and then click the Properties button
- Select the Logs tab
- To enable Auto-Purging:
Click the Auto-purge-of job log check-box so that its check mark appears. Choose and then set the purge control option you would like to use:
- Up to previous job run(s): (sets how many job runs to keep in all job logs)
- Older than (days): (sets how many days should be kept in all job logs)
Next invoke the DataStage Director and logon to the DataStage project. Execute job seq_Update_Job_AutoPurge_Settings in the Administration
category
- Set job parameter Process to execute to *UPDATEFROMDEFAULTS
- Leave parameter Text file containing jobs and auto-purge settings at default setting of JDAAutoPurgeJobs.csv.
- Leave parameter Clear job logs 0=No. If this parameter is set to 1 running this job will clear all job logs in the project.
- Click Run
Automatic log purge is now set. Next time any job is run the logs will be purged using the administrator purge settings.
There will be an entry at the end of each of the job logs showing how many log entries have been removed.