Hello SQR experts: In the event that a SQL query fails, we would like SQR to print, to the log, the SQL code which was executing at the time of the error. Is there an SQR variable which contains the currently executing SQL query? Is there any way to do this? Dave