0 - 3 of 3 tags for sqlstate

I want to implement a continue handler in the stored procedure for query that can spool out.

I check in pdcrinfo. SqlState_Codes there is no sqlstate associated to spool out error 2646. 


Query is in below form and it gets spooled out if values for  column are skewed.

INSERT INTO TAB1(col_value,row_count)

Problem statement:


We want to set custom SQLSTATE in Teradata stored procedures. The only way to set custom SQLSTATE value is through external stored procedure.