How to remove historical data from CoolSpools log files

Here are some examples of how to clear historical data from the CoolSpools log files.

DLTSPLTRN - Spool Monitor Housekeeping


DLTSPLTRN USER(*ALL)      
          AGERANGE(90 *MAX)
          DLTUNPRC(*NO)   
          DLTINFO(*ALL)   
          RGZPFM(*YES)    

This will purge the following spool monitor transaction files of records older than 90 days and will reorganise the files.

  • ST_SPLTRN
  • ST_TRNSTP
  • ST_ERRLOG

The files cannot be reorganised while they are in use. You should end the CoolSpools Spool Admin jobs with the ENDMONSPLF command (option 32 on the CoolSpools SPOOLADMIN menu) prior to running DLTSPLTRN with RGZPFM(*YES).


DLTCMNMSG - Email Housekeeping

DLTCMNMSG DLTSAVMSG(60)         
          DLTLOGDTA(60 *YES)    
          DLTSMTPMSG(60 *NO *YES)

This will purge the following email log files of records that are older than 60 days and reorganise the files.

  • CM_MSGLOG
  • CM_MSGRCP
  • CM_MSGATC
  • CM_SVRMSG
  • CM_SVRRCP
  • CM_SVRATC
  • CM_SVRLOG

The files cannot be reorganised while they are in use.  You should end the CoolSpools SMTP server jobs with the ENDSMTPSVR command (option 12 on the CoolSpools SMTPEMAIL menu) prior to running DLTCMNMSG with the reorganise option set to *YES.

Article Details

Article ID:
80
Date added:
07/06/2019 09:04:43
Views:
544
Rating (Votes):
(11,237)

Related articles