Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Capturing ERRORCODE in BTEQ from stored Procedure - response (2) by sillian

$
0
0

Hi,
 i have the same problem but can solve it. The stored procedure returns an error code but is not captured by Bteq, here is an example log:
 

Call SP_NAME('DB_NAME','TABLE_NAME');

 *** Error 2825 NO RECORD OF THE LAST REQUEST WAS FOUND AFTER DBC RESTART

 *** Total elapsed time was 32 minutes and 45 seconds.

+---------+---------+---------+---------+---------+---------+---------+----

.IF ERRORCODE <> 0 THEN .GOTO BTEQ_KO ;

 

 

The Bteq ERRORCODE is always 0, the Bteq doesn't see the all Stored Procedure errorcode and BTEQ go to a OK state.

 

There's some other sql instruction for capture the SP error code in a Bteq?

 

Regards.

Giulian

 

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>