CA Scheduler Job Management Event Tracking and CAIENF Query for CA Common Services r12.0 and above.

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

Description:

When CA Scheduler JM jobs are not tracked properly, a CAIENF events query is generally needed to help isolate the problem area. This Knowledge Document provides a sample JCL to capture the ENF events for problem analysis when running CA Common Services r12.0 and above.

Solution:

CAIENF monitors the system for events that CA Scheduler JM uses such as jobs starting and ending, steps ending, and data sets being created or 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/schedules statuses accordingly.

When a tracking problem occurs, CA Support will request a query job against the CAIENF database to help determine if the event was captured.

Here is a sample query JCL for different events. Change the value of JJJJJJJJ to the jobname in question.


//SQL       EXEC PGM=DBSQLPR,REGION=0M,PARM='AUTHID=CAS9ENFS'          
//STEPLIB   DD DISP=SHR,DSN=YOUR.ENF.DATACOM.CUSLIB                    
//          DD DISP=SHR,DSN=YOUR.ENF.DATACOM.CAAXLOAD                  
//SYSPRINT  DD SYSOUT=*                                                
//STDOUT    DD SYSOUT=*                                                
//SYSOUT    DD SYSOUT=*                                                
//SYSUDUMP  DD SYSOUT=*                                                
//SNAPPER   DD SYSOUT=*                                                
//OPTIONS   DD *                                                       
ROWLIMIT=2000                                                          
PRTWIDTH=500                                                           
//*                                                                    
//SYSIN     DD *                                                       
*$ROW                                                                  
SELECT DATEL, TIME, JOBNAME, JOBNUM, USER, CLASS, ACCOUNT, ASID,       
       PGMRNAME                                                        
    FROM CAS9ENFS.JOBINIT                                              
    WHERE JOBNAME = 'JJJJJJJJ'                                         
    ORDER BY DATEL,TIME;                                               
SELECT DATEL, TIME, JOBNAME, JOBNUM, ASID, STEPNAME, STEPNUM, PROCSTEP,
       COMPCODE, STEPFLAG, IOCDASD, IOCTAPE, IOCOTHER                  
    FROM CAS9ENFS.STEPTERM                                             
    WHERE JOBNAME = 'JJJJJJJJ'                                        
    ORDER BY DATEL,TIME;                                              
SELECT DATEL, TIME, JOBNAME, JOBNUM, ASID, STEPNUM, COMPCODE, CPUTIME,
       SRBTIME, JOBFLAG                                               
    FROM CAS9ENFS.JOBTERM                                             
    WHERE JOBNAME = 'JJJJJJJJ'                                        
    ORDER BY DATEL,TIME;                                              
SELECT DATEL, TIME, JOBNAME, JOBNUM, FAILTYPE, FAILDESC               
    FROM CAS9ENFS.JOBFAIL                                             
    WHERE JOBNAME = 'JJJJJJJJ'                                        
    ORDER BY DATEL,TIME;      
SELECT DATEL, TIME, JOBNAME, JOBNUM, DSN, GDGFLAG, BLKSIZE, LRECL,   
       RECFM, ASID, ACCESS, DEVT, DSFLAG                             
    FROM CAS9ENFS.DSCLOSE                                            
    WHERE JOBNAME = 'JJJJJJJJ'                                        
    ORDER BY DATEL,TIME;              
/*

For more sample query JCLs, apply CA Scheduler PTF RO12887.