Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 02 Sep 2004 @ 08:33:51 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 21:27 -->

Thank you very much!

I try to test for every possible errors..hence the code...

     MLOAD < testscript.txt
     IF ERRORLEVEL ==12 GOTO FAIL
     IF ERRORLEVEL ==11 GOTO FAIL
     IF ERRORLEVEL ==10 GOTO FAIL
     IF ERRORLEVEL ==9 GOTO FAIL
     IF ERRORLEVEL ==8 GOTO FAIL
     IF ERRORLEVEL ==7 GOTO FAIL
     IF ERRORLEVEL ==6 GOTO FAIL
     IF ERRORLEVEL ==5 GOTO FAIL
     IF ERRORLEVEL ==4 GOTO FAIL
     IF ERRORLEVEL ==3 GOTO FAIL
     IF ERRORLEVEL ==2 GOTO FAIL
     IF ERRORLEVEL ==1 GOTO FAIL
     IF ERRORLEVEL ==0 GOTO PASS

     :PASS
     ECHO Mload Pass  >> job.log
     GOTO END
     :FAIL
     ECHO Mload Failed  >> job.log
     GOTO END
     :END


     
  <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