Archives of the TeradataForum
Message Posted: Wed, 01 Sep 2004 @ 13:50:19 GMT
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 >
|