Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 23 Mar 2004 @ 19:41:26 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Capturing Error Messages - Stored Procedures
 
From:   jeff_spencer

Hello All,

I would like to capture the error message when an exception occurs in a stored procedure. When handling exceptions, the codes are contained in :SQLCODE and :SQLSTATE. From previous posts on the forum, I discovered the message for :SQLCODE can be found in table DBC.ERRORMSGS. However, the messages on this table often contain parameters. For instance, the following is an example message from DBC.ERRORMSGS:

'Column %FSTR not found in %VSTR.'


Does a good way exist to identify the dynamic message at run time - in other words, for the example above, identify %FSTR and %VSTR?


Thanks for any assistance,

Jeff



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016