Archives of the TeradataForum
Message Posted: Fri, 24 Jan 2003 @ 16:51:42 GMT
If you are using Windows 2000/NT, I assume one of them, you can make your JCL such that it can stop while encountering an error from your utility and calls or executes a mail program.
Look at the JCL below that checks if error occurred then quit and call mail.
If your mail program is executable you can just call the program.
On your load script you specify to raise the errorlevel when an error occurs. Say for your bteq job you say the following:
.IF ERRORLEVEL > 7 THEN .QUIT ;
Hope this helps!
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|