Previous Topic: Alert PartNext Topic: Job APCXJLIB


Maintenance Part

The maintenance part of APCXACAL maintains the database synchronization of scope definitions and data, such as, job information and alerted job steps.

If the Scope, CA MAT Scope, or TOP Scope of work has been changed through the online dialog, a maintenance function for job step statistics (contained in data set CAMAT.PMA.KSDSJOB) and alert information (contained in data set CAMAT.PMA.KSDSALT) is invoked. The following table describes the processing rules that are used.

Kind of scope
change

Job step statistics
if out of scope

Alerts created by PMA
with state PEND
if out of scope

Alerts created by USER with state PEND
if out of scope

PMA Scope

deleted

deleted

unchanged

CA MAT Scope

flagged

Visible in the job list of the PMA dialog.

automatically closed by PMA with state CTHR

unchanged

TOP Scope

flagged

Visible in the job list of the PMA dialog.

automatically closed by
PMA with state CIMP

unchanged

In addition, the importance calculation is performed again for all job steps. If, for some reason, job steps are no longer in the TOP Scope but a pending (PEND) alert still exists for them, they are managed according to the Top Scope change processing previously described.

When program APCXACAL completes execution, a statistical table is output to DDNAME APCREP.

//APCXACAL EXEC PGM=APCXACAL
//STEPLIB  DD DSN=CAMAT.PMA.CEETLOAD,
//            DISP=SHR
//*
//APCPARAM DD DSN=CAMAT.PMA.PARMS,
//            DISP=SHR
//APCREP   DD SYSOUT=*
//APCEREP  DD SYSOUT=*
//APCJLOG1 DD DSN=CAMAT.PMA.LOG,
//            DISP=MOD
//APCMES   DD DSN=&&LOG001,
//            DISP=(OLD,DELETE)
//APCNEW   DD DSN=NULLFILE,
//            DISP=SHR
//APCBJOB1 DD DSN=CAMAT.PMA.KSDSJOB,
//            DISP=SHR
//APCBALT1 DD DSN=CAMAT.PMA.KSDSALT,
//            DISP=SHR
//APCBLMO1 DD DSN=CAMAT.PMA.KSDSLMO,
//            DISP=SHR
//APCBEXC1 DD DSN=CAMAT.PMA.KSDSEXC,
//            DISP=SHR
//*