Archives of the TeradataForum
Message Posted: Tue, 11 Oct 2005 @ 13:02:13 GMT
<-- Anonymously Posted: Tuesday, October 11, 2005 06:34 -->
I require help in writing procedure. Here is my requirement.
While transforming I need to log error code along with its key column into error table if a particular record fails to process.
Also process should proceed further after logging for that particular culprit record.
For example, in Oracle, I can handle it as follows,
FOR i IN cursor_ LOOP BEGIN INSERT INTO table_ VALUES ( i.Column_1, i.Column_2 ) ; EXCEPTION WHEN OTHERS THEN sqlmsg := i.Column_1 || ' - ' || SQLERRM ; INSERT INTO error_log ( Column_1 ) VALUES ( sqlmsg ) ; END ; END ;
Thanks in advance.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|