Create the TraceSet_project() procedure

The TraceSet_project() procedure (where project is the name of your DataBlade® module project) sets the tracing output file and the trace threshold for a database server session by calling the DataBlade API functions mi_tracefile_set() and mi_tracelevel_set().

The TraceSet_project() procedure is included in generated source code by BladeSmith when you choose to generate code with tracing in the Generate DataBlade dialog box. Although the TraceSet_project() procedure is included in the generated C code, the SQL statements to create it in the database are not included in the generated SQL scripts. This omission prevents end users from accessing the TraceSet_project() procedure from SQL statements.

After you install and register your DataBlade module in the database, create the TraceSet_project() procedure by using the following SQL statement:
CREATE PROCEDURE TraceSet_project(LVARCHAR, INT)
WITH(NOT VARIANT)
EXTERNAL NAME "/$INFORMIXDIR/extend/project/project.bld(TraceSet_project)"
LANGUAGE C
END PROCEDURE;
where project is the name of your DataBlade module.
Tip: The comments for the TraceSet_project() procedure in your source code show the exact syntax to create the procedure for your DataBlade module.