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
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)