Hi Said,
You can enable the ODBC APOI tracing with the built-in Windows utility odbcad32.exe.
First determine if you're using 32 or 64-bit ASE ODBC Driver.
For 32-bit the odbcad32.exe resides in \windows\SysWOW64
64-bit in \windows\system32
In the tool go to tracing tab, set filename, turn on trace, and apply/ok. A trick I learned is to immediately go back in the utility, and click tracing tab to activate the trace - make sure your ODBC Application IS NOT running when you set this tracing on.
Also, please provide the version of the driver used.
Cheers,
-Paul