Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Wed, 01 Sep 2004 @ 13:50:19 GMT





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




Subj:   Re: Windows DOS prompt capture return code from mload
 
From:   Anomy Anom



<-- Anonymously Posted: Wednesday, September 01, 2004 09:46 -->

Re: Question 1...

You want to deal with the ENV variable ERRORLEVEL. On the command line, you can reference %ERRORLEVEL%. While in bat files, it is just ERRORLEVEL.

Here's a snippet from a bat file I have running:

     < snip >
     MLOAD < mload_script.mld > mload.log 2>&1
     IF ERRORLEVEL==0 >> job.log ECHO Mload ran successfully
     < snip >




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