SQL Anywhere stores crash reports and feature statistics information in a diagnostic directory. The SADIAGDIR environment
variable is used to determine the location of the diagnostic directory where SQL Anywhere writes crash reports.
If the directory specified by this environment variable does not exist, then the database server operates as though the environment
variable is not set.
On Windows (except Windows Mobile), diagnostics are written to the first writable directory in the following list:
The directory specified by the SADIAGDIR environment variable.
On Unix, writing crash reports to the user's home directory is not recommended when the database or MobiLink server is running
as a daemon, or the user is root/nobody. Because of this, the Unix install prompts you for a suitable location and sets the
SADIAGDIR environment variable in the sa_config.sh and sa_config.csh files.