SQL Guide : solidDB® SQL statements : CREATE PROCEDURE : writetrace_statement
  
writetrace_statement
writetrace_statement ::= WRITETRACE(string)
The WRITETRACE statement function sends trace output (string) to the soltrace.out trace file. This can be useful when debugging problems in stored procedures.
The output will only be written if you turn tracing on.
For more information about tracing in stored procedures and how to turn on tracing, see Tracing facilities for stored procedures and triggers.
See also
CREATE PROCEDURE