Problem Determination APIs

The problem determination APIs are:

Note: Some of these functions unconditionally write the specified application data. The use of these functions should be limited to unexpected failure, exception or other error conditions. The preferred method for writing application trace data is through the use of the QTRC Trace APIs.

Note: These functions use header (include) files from the library QSYSINC, which is optionally installable. Make sure QSYSINC is installed on your system before using any of the functions. See Header Files for UNIX®-Type Functions for the file and member name of each header file.

The problem determination APIs are intended to be used as an aid in debugging exception or error conditions in application programs. These functions should not be used in performance critical code.

These functions can be used during application development, as well as after the application is made available, as debug mechanisms. For example, a compile option could be used to activate the problem determination functions during application development. When the application is ready to be made available, recompile to deactivate the functions.

Some of the problem determination functions dump or print to the user trace. The user trace is a permanent user space object named QP0Z<jobnumber> in the QUSRSYS library. The user trace is created the first time any thread in a job writes user trace output. The following CL commands can be used to manipulate the user trace properties and objects:

For those problem determination functions that use the user trace, the following should be considered:


[ Back to top | Problem Management APIs | APIs by category ]