Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 21 Feb 2011 @ 14:39:19 GMT


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


Subj:   Script returning wrong return code
 
From:   madhu.priya

Hi All,

A script where we are submitting error level 3807 as severity 0, then dropping the table and checking if Errorcode is not equal to 0 we quit with RC=0 else RC =20. When running the script we get errorlevel 3807, which should be set as severity 0 and quit with RC=0 but the script is not doing so , it give RC=20 and passes errorlevel as 3807. Please suggest what might be the probable cause for this.

     .SET ERRORLEVEL 3807 SEVERITY 0;
     DROP TABLE db.tb1
     ;
     .IF ERRORCODE <> 0 THEN .QUIT 20

Regards,

Madhu



     
  <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