Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 06 Apr 2005 @ 10:57:56 GMT


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


Subj:   BTEQ call to Stored Procedure
 
From:   David Clough

Is there a way that I can trap an error message for an invoked Stored Procedure within BTEQ and take action upon it within the BTEQ script?

For example, if in my example Stored Procedure "MY_SP" is invoked with MY_SP('D',5, ResultMsg);

then ResultMsg will return 'Completed Successfully'.

But, if it were to be invoked with MY_SP('X',5, ResultMsg);

Then ResultMsg would return : 'Invalid period parameter : X'.

I'd like to trap this within BTEQ and Abend the mainframe Job.


Any ideas?

Dave Clough - Database Designer



     
  <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