Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 28 Nov 2005 @ 09:54:48 GMT


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


Subj:   Exit From Stored Procedure
 
From:   Srikanth Goli

Is there an Exit or Return equivalent in teradata procedure language? I would like to set the returncode (an output parameter) of a proc to non-zero on failure and exit the procedure.

     ---Procedure (out returncode integer)

     If ( some_condition = 0 ) -- failure
     returncode = 100;
     EXIT;
     end if;

     other statements ..

thanks.



     
  <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: 15 Jun 2023