Is there a way to automatically restart the Email Notification after TRAC130E/TRAC130I messages occur
search cancel

Is there a way to automatically restart the Email Notification after TRAC130E/TRAC130I messages occur

book

Article ID: 128384

calendar_today

Updated On:

Products

Jobtrac

Issue/Introduction



Is there a way to automatically restart the Email Notification after TRAC130E/TRAC130I messages occur?

Environment

Release:
Component: JOBTRC

Resolution

There is not a way to automate the the Email Notification global option settings in SYS OPTS
using Jobtrac programs.  Users have to be logged into Jobtrac to modify any of global option
settings for Jobtrac.


However, since the Jobtrac Datacom database can be accessed through SQL, there is
a way to do this using a Datacom utility. The SQL sample job below will display 
the current EMAIL setting and  has an Update step that will turn the setting on in the
database. Once the setting is on in the OPS record, the next time we try to do 
an email for a job, it will read the OPS record and see that emails are on. 



//*                                                                     
//* WARNING: SQL IS VERY POWERFUL! VERIFY THIS ON YOUR TEST SYSTEM FIRST
//* WARNING: SQL IS VERY POWERFUL! VERIFY THIS ON YOUR TEST SYSTEM FIRST
//* WARNING: SQL IS VERY POWERFUL! VERIFY THIS ON YOUR TEST SYSTEM FIRST
//*                                                                     
//* YOU MUST MODIFY THE STEPLIB AND THE TOKEN IN THE SYSIN FOR          
//* YOUR SYSTEM                                                         
//*                                                                     
//* THE DISPLAY STEP SHOWS THE CURRENT EMAIL SETTING                    
//*                                                                     
//DISPLAY EXEC PGM=DBSQLPR,                                             
//      PARM='PRTWIDTH=999,INPUTWIDTH=72,ROWLIMIT=9999'                 
//STEPLIB DD DISP=SHR,DSN=hlq.CUSLIB                       
//        DD DISP=SHR,DSN=hlq.CAAXLOAD            
//SYSPRINT DD SYSOUT=*                                                  
//STDERR   DD SYSOUT=*                                                  
//STDOUT   DD SYSOUT=*                                                  
//OPTIONS  DD DUMMY                                                     
//SYSIN    DD *                                                         
 SELECT EMAIL_NOTIFICATION                                              
        FROM  SYSUSR.CAHD_0161_OPS                                      
        WHERE TOKEN = 'D';                                              
//*                                                                     
//* THE UPDATE STEP WILL CHANGE THE EMAIL SETTING. VALID                
//* VALUES ARE "Y" OR "N".                                              
//*                                                                     
//UPDATE  EXEC PGM=DBSQLPR,                                             
//      PARM='PRTWIDTH=999,INPUTWIDTH=72,ROWLIMIT=9999'                 
//STEPLIB DD DISP=SHR,DSN=hlq.CUSLIB                       
//        DD DISP=SHR,DSN=hlq.CAAXLOAD            
//SYSPRINT DD SYSOUT=*                                                  
//STDERR   DD SYSOUT=*                                                  
//STDOUT   DD SYSOUT=*                                                  
//OPTIONS  DD DUMMY                                                     
//SYSIN    DD *                                                         
 UPDATE SYSUSR.CAHD_0161_OPS                                            
        SET EMAIL_NOTIFICATION = 'Y'                                    
        WHERE TOKEN = 'D';  

As always, please contact Broadcom support for Jobtrac Job Management if you have further questions.