Purge Parameters
Table of Contents
Overview ...................................................................................................................................................... 1
Trace Logs Purge ........................................................................................................................................ 2
Batch Server Logs Purge ........................................................................................................................... 5
Overview
This document describes the process of configuring Purge Parameters for files and tables, and
scheduling recurring batch tasks to run the purges. The two most common purges for Trace Logs and
Batch Server Logs are illustrated.
Archiving and Purges of other groups and tables should be in compliance with your companys data
retention policy and discussed with a Sage ERP X3 functional consultant before proceeding.
The trace logs can be manually deleted or moved to another folder via Windows Explorer. But that can
be cumbersome with the risk of deleting more recent logs that may be useful or required based on your
retention requirements.
Establish the Purge Parameters to specify how many days of Trace Logs are to be retained when the
Purge process is executed.
Admin menu path: Set-up (or Parameters) | Usage | Data | Purge Parameters
Recurring Task: give the Task a name. As the tasks are specific to each child folders, and you may
want to establish purges in each folder, the example shows a name including the child folder name.
Description: description of the task
Folder: will default to the current folder.
User Code: will default to the current user.
Password: will be skipped if the User Code is the current user. If the User Code is changed so the
job is run under another user code, that user codes password must be specified.
Group: skip, leave blank
Task Code: specify AHISTO (this is the history/purge function)
The Recurring task will be scheduled in the Batch Server queue per the Frequency specified. The job will
not show up in the Batch Server Request Management queue until the date the job is to be run.
To manually execute a Trace Logs purge, log into the child folder.
CAUTION: this is an interactive process which may take a very long time to complete and is not
recommended.
The batch logs can be manually deleted or moved to another folder via Windows Explorer. But that can
be cumbersome with the risk of deleting more recent logs that may be useful or required based on your
retention requirements.
To manually purge the batch jobs logs, select the <Purge> button on the Request Management screen,
then specify the date logs are to be removed up to and including that date.
CAUTION: this is an interactive process which may take a very long time to complete depending on the
number of batch job logs to be purged based on the date specified.
This setup must be done logged in the X3 reference folder as Admin. The batch server
encompasses the entire Sage ERP X3 runtime.
Establish the Purge Parameters to specify how many days of Batch Jobs Logs are to be retained when
the Purge process is executed.
The number of Days to retain should be determined by how many batch jobs are run on a daily basis and
how long you wish to keep the batch logs available in the Request Management screen.
To schedule a Recurring Batch Task to execute the Purge, still logged into the X3 reference folder::
Admin menu path: Batch Server | Recurring Task Management
Select the New icon
The Recurring task will be scheduled in the Batch Server queue per the Frequency specified. The job will
not show up in the Batch Server Request Management queue until the date the job is to be run.