Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 06 Jan 2011 @ 09:09:26 GMT


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


Subj:   BTEQ Restart Logic
 
From:   Naveedahmed M

Hi,

How can i restart the Bteq script from the point it failed ?

Below is the code format in my script, so please suggest it accordingly.

     .logon ${PTD_TDP}/${PTD_DB_USER},${PTD_DB_PASSWD};
     DELETE FROM ${PQA_GSC_DCM_DB}.table1; ---- sq11 .if errorcode <> 0 then .goto EXIT_ERROR

     DELETE FROM ${PQA_GSC_DCM_DB}.table2; ---- sql2 .if errorcode <> 0 then .goto EXIT_ERROR

     DELETE FROM ${PQA_GSC_STG_DB}.table3; ---- sql3 .if errorcode <> 0 then .goto EXIT_ERROR

     DELETE FROM ${PQA_GSC_STG_DB}.table4; ---- sql4 .if errorcode <> 0 then .goto EXIT_ERROR

     DELETE FROM ${PQA_GSC_STG_DB}.table5; ---- sql5 .if errorcode <> 0 then .goto EXIT_ERROR

Now in the above code, if the sql3 fails, next time when i execute the same script i want it to start executing from the point it failed say as sql3.

Note: It should skip the sql1 & sql2 , please suggest me on this with a sample code..


Thanks

Naveed



     
  <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