0 - 3 of 3 tags for bteq error handling

HI All,
I have a situation where sometimes my Stored Procedure is getting terminated manually 
But its not getting logged anywhere.
Is there a way i can capture this in the stored procedure through the error handling block
 
Regards
SSD

hi
 
i am trying to write a bteq script which executes some select statements and exports the result to a text file on my system running on windows
here is the script
 
 .logtable SAMPLES.bteqexportLog;
.LOGON 127.0.0.1/tduser,tduser;
.begin export sessions 20;

Hi -

 

Is there bteq equivalent of Oracle Sqlplus 'whenever sql error exit failure' ? I know I can code ".IF ERRORCODE <> 0 THEN .QUIT ERRORCODE", but I was just wondering if there is a statement that I can put at the begining and not worry about repeating this code after every SQL ststement in my code ??