FlushResultFile Function

Action

Flushes the buffer of the specified result file.

Include file

Kernel.bdh

Syntax

FlushResultFile( in nResultFile : number,
                 in bClose      : boolean optional ): boolean;

Return value

  • true if the file could be flushed.

  • false otherwise.

Parameter Description
nResultFile

Following result files can be flushed.

  • RESULT_FILE_ERR. Flushes the error log.

  • RESULT_FILE_LOG. Flushes the log files.

  • RESULT_FILE_RPT. Flushes the report file.

  • RESULT_FILE_WRT. Flushes the user output file.

  • RESULT_FILE_XLG. Flushes the .xlg. result files.

  • RESULT_FILE_TSD. Flushes time series data.

  • RESULT_FILE_ALL. Flushes all result files.

bClose (optional)

Specifies whether the results file should be closed after flushing. The default value is FALSE.

Example

dcltrans
  transaction TRaiseError
  begin
    ...
    FlushResultFile(RESULT_FILE_RPT);
    FlushResultFile(RESULT_FILE_XLG);
  end TRaiseError;