Instructs the profiler to analyze the data that was recorded and to write the current information to the profile output file. If the write is successful, then the profiler returns TRUE. It returns FALSE if it fails to write the data. A failure to write data could mean either there is no new data or that the profiler could not open the specified output file. Time spent analyzing and writing the profiling data is deducted from any future data profiling.

Return-type: LOGICAL

Applies to: PROFILER system handle

Syntax

WRITE-DATA()
Note: A call to WRITE-DATA() will overwrite any previous output. Be sure to change the filename via the PROFILER:FILE-NAME attribute or move the previous output before another call to WRITE-DATA() or before profiling (PROFILER:ENABLED=FALSE) or the session ends.

For example code using WRITE-DATA(), see PROFILER system handle.

See also

COVERAGE attribute, DESCRIPTION attribute, FILE-NAME attribute, ENABLED attribute, LISTINGS attribute, PROFILING attribute, STATISTICS attribute, TRACING attribute and USER-DATA ( ) method