Log entries contain information, such as who made changes, when the changes were made, and what the changes were. We recommend purging files on a regular basis. Logs can be set to purge as often as needed. Purging frequency depends on the type of log you need to purge. For example, you want to keep product file records for two years, but maintenance records are not as critical and should at a minimum be purged every six months. Deleting expired log entries from the system reclaims disk space on the server for other uses.
Note: You must have permission to purge logs from your system. See your system administrator for more information.
Important: Depending on the number of files set to purge, the purging process can take several days or weeks to complete. The deletion process can slow down system processes and should be run during off hours. Set parameters (step 3 below) to ensure that the system purges files only during non-working hours. The system suspends the purge during the specified times. |
To schedule a maintenance log purge:
Define the following parameters in File Definition Maintenance for the file you want to purge:
From the File > Merge/Purge menu, select Purge Maintenance to display the Purge Maintenance window.
In the Purge File column, select MAINT.LOG or PROD.LOG to populate the Purge Maintenance window.
Note: If no log is listed, type the file name you want to purge.
From the Option menu, select Detail Schedule to display the Detailed Purging Schedule Setup window.
Use the following areas to set parameters and ensure that the system purges files only during non-working hours. The system suspends the purge during the specified times:
Area | Field | Description |
Main | Purge File | (View Only) Displays the file you want to purge, such as MAINT.LOG, as displayed on the Purge Maintenance screen. |
Next Run Date / Time | Displays the date on which the system will next purge records for the log. Note: You can only edit this field if the file is already scheduled for purging. | |
M-F Sleep From / To | Enter your normal business hours to keep the purge process from running during these times and ensure that your system runs at normal speed. | |
Sat Sleep From / To | ||
Sun Sleep From / To | ||
Temporarily Disable Purge | Disable Start Date / Time | Enter any specific time frame for which you want to suspend any purge that may occur. For example, you are conducting monthly inventory the last three days of the month. Enter the dates and times for that period. |
Disable End Date / Time |
Note: Use the View > View Log option from Purge Maintenance to review the status when the log was last purged and what changes have been made to the log purge process, to determine if records need to be reviewed or checked.
From the Option menu, select Schedule to display the Phantom Scheduler screen and schedule the purge for regular intervals. For more information about using the Phantom Scheduler, see Scheduling Phantom Processes.
ClickOK to save changes and return to Purge Maintenance.
Save your changes and close the window to return to Purge Maintenance.
See Also: