Log Maintenance in Batch

The following figure shows sample JCL that executes the Log Maintenance utility you can use to perform log maintenance in batch. You must have authority to update the parameters for the IMSID specified.

Sample Batch Log Maintenance Utility JCL

//JOBNAME  JOB  (account)
//* UPDATE JOB CARD
//*
//LOGMAINT EXEC PGM=IKJEFT01,
//         PARM=DLAXUTL0,DYNAMNBR=16,REGION=512K
//*
//STEPLIB  DD DSN=BMC.DLALIB,
//* UPDATE LIBRARY
//            DISP=SHR
//SYSUT1   DD DSN=&&DLALOGS,
//            DISP=(NEW,DELETE,KEEP),UNIT=SYSDA,
//            SPACE=(CYL,(2,2))
//*//SYSUT1 SPACE PARAMETER MUST MATCH LOG DATA SET SPACE
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN  DD *
BATCH COMMANDS
/*

The commands shown in the following table require the input of the IMSID.

Log Maintenance Commands

Command

Description

STATUS imsid

Displays the current log data set status.

PURGE imsid

Deletes inactive log records.

RECOVER imsid

Re-creates the log or clears log errors.

FORMAT imsid

Clears and formats the log data sets.

Was this page helpful? Yes No Submitting... Thank you

Comments