CA Jobtrac Job Management Events Tracking and CAIENF Query.

Document ID : KB000053529
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When CA Jobtrac JM jobs are not tracked properly, a CAIENF Events Query is generally needed to help isolate the problem area. This Knowledge Document provides sample JCL to capture the ENF events for problem analysis.

Solution:

CAIENF monitors the system for events that CA Jobtrac JM uses such as jobs starting and ending, and steps ending being updated. CAIENF captures these events (if the events have been activated when CAIENF is started), allowing a "listener application" such as CA Scheduler JM to use these events and update the jobs status accordingly.

When a tracking problem occurs, CA Support will request Query commands against the CAIENF database to assist us in determining if the event was captured.

Here is the JCL to run the Query against different events.

// EXEC PGM=CAS9DB,REGION=4096K          
//SYSPRINT DD SYSOUT=*                   
//DBOUT    DD SYSOUT=*                   
//DBIN     DD   *                        
*     QUERY  ENF DATABASE  FOR CHDUJV2S   
   QUERY DB(*)                             
     SELECT *                              
     FROM ENFDBA.CHDUJV2S                   
    WHERE JOBNAME = 'jobname'              
   ENDQUERY                           
*     QUERY  ENF DATABASE  FOR JOBINIT   
   QUERY DB(*)                             
     SELECT *                              
     FROM ENFDBA.JOBINIT                   
    WHERE JOBNAME = 'jobname'              
   ENDQUERY                           
*     QUERY  ENF DATABASE  FOR JOBTERM   
   QUERY DB(*)                             
     SELECT *                              
     FROM ENFDBA.JOBTERM                   
    WHERE JOBNAME = 'jobname'              
   ENDQUERY                                
*     QUERY  ENF DATABASE  FOR JOBFAIL   
   QUERY DB(*)                             
     SELECT *                              
     FROM ENFDBA.JOBFAIL                   
    WHERE JOBNAME = 'jobname'              
   ENDQUERY                                
*     QUERY  ENF DATABASE  FOR STEPTERM    
   QUERY DB(*)                               
     SELECT *                                
     FROM ENFDBA.STEPTERM                    
    WHERE JOBNAME = 'jobname'                
   ENDQUERY          
*     QUERY  ENF DATABASE  FOR JOBSTEPTERM    
   QUERY DB(*)                               
     SELECT *                                
     FROM ENFDBA.STEPTERM                    
    WHERE JOBNAME = 'jobname'                
   ENDQUERY          
*     QUERY  ENF DATABASE  FOR JOBPURGE    
   QUERY DB(*)                               
     SELECT *                                
     FROM ENFDBA.JOBPURGE                    
    WHERE JOBNAME = 'jobname'                
   ENDQUERY          
// 

If you need to restrict the query further, add JOBNUM to the WHERE statement. You won't need all of these all of the time.