Hello All, hope I put my question in right place.
I have some problems with my store procedures and I want to turn on db2 trace and turn off it right after new error occur. All errors are written into exception_log table. So I need to turn on db2 trace and then check if new error are appeared in the exception_log table. To check it I use sql query something like this "select count(*) from exception_log where date = current date".
I want to do this check in loop from batch file but I have no idea how to do it.
I also need write result of this select statement into a variable and compare current result with previous.
Can anybody help me with this?