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

Bteq script - error handling not working, need help - response (4) by M.Saeed Khurram

$
0
0

Hi,
You can use the below template to handle errors, while activity count is writted to log file based on the type of statement (Insert, Update, Delete)

SELECT 'STARTDTTM' AS A, CURRENT_TIMESTAMP;

--You code here

.IF ERRORCODE <> 0 THEN .QUIT 8

SELECT 'ENDDTTM' AS A, CURRENT_TIMESTAMP;

.IF ERRORCODE <> 0 THEN .QUIT 8

.LOGOFF
.QUIT 0

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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