You can clear messages from the current log file and leave the log file open for writing using the following methods:

  • The Clear Log (-clearlog) startup parameter
  • The CLEAR-LOG( ) method on the LOG-MANAGER system handle
Note: This method is valid only for interactive or batch clients.

The following table shows how to clear the log file.

Table 1. Clearing the log file
Method General syntax Example
Startup parameter
-clearlog
-clientlog mylog.log -clearlog
LOG-MANAGER system handle
LOG-MANAGER:CLEAR-LOG( )
LOG-MANAGER:CLEAR-LOG( ) 
              

For a detailed description of the Clear Log (-clearlog) startup parameter, see Startup Command and Parameter Reference.

For a detailed description of the LOG-MANAGER system handle, see ABL Reference.