Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Tue, 18 Jul 2006 @ 19:15:58 GMT





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




Subj:   Re: Capture of BTEQ return code
 
From:   Bhanu Govindu



In Unix (Kshell) you can use "$?" to capture the return code for BTEQ. In Windows you can use "errorlevel" .

Unix Sample:

     ...
     ...
     Bteq < bteqscr > logfile
     Retcode=$?
     ...
     ...

Windows sample:

     ...
     ...
     Bteq < bteqscr > logfile
     set var1=%errorlevel%
     ...

Regards





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008