Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 24 Jan 2003 @ 16:51:42 GMT


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


Subj:   Re: How setup a e-mail notification from mload on failure of job
 
From:   Mohommod Khan

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.

mload c:\script_log
if errorlevel 1 goto labelx

:labelx
echo 'Error..'
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!



     
  <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