Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange Change Data Capture Introduction
  3. Part 2: CDC Components Configuration and Management
  4. Part 3: CDC Sources Configuration and Management
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: CDC for z/OS Troubleshooting
  8. Appendix B: DTL__CAPXTIMESTAMP Time Stamps

Deleting Log Data Sets from the ERDS

Deleting Log Data Sets from the ERDS

The DELETE_LOG command deletes all information about a specified log data set from the emergency restart data set (ERDS).
You can run the DELETE_LOG command as part of a batch job or interactively, whenever you need to delete a log. Example use cases include:
  • Remove archive log data sets that are outdated or no longer exists.
  • Recover from bad DEFINE_LOG commands.

Syntax

To issue the DELETE_LOG command with the MVS MODIFY command, use the following syntax:
F
proc_name
,DELETE_LOG|DELLOG DSNAME=
log_dataset_name
To issue the DELETE_LOG command as part of a batch job, use the following syntax:
DELETE_LOG|DELLOG DSNAME=
log_dataset_name
END
The following table describes the DELETE_LOG parameters:
Parameter
Description
Valid Values
DSNAME | LOG_DSNAME
Specifies the fully qualified data set name for the log data set for which to delete information from the ERDS.
A data set name, up to 44 characters in length.
proc_name
Specifies the PowerExchange Logger procedure name. Required if you issue the command interactively.
A valid procedure name.

Usage Note

If you run the DELETE_LOG command as part of a batch job, you must stop the PowerExchange Logger before the batch job runs.

Sample JCL

The following sample JCL deletes an archive log data set in batch mode. The question marks (????) represent the PowerExchange Logger ID.
//jobname JOB //DEFLOG EXEC PGM=EDMLC000,PARM='????,BATCH' //STEPLIB DD DISP=SHR,DSN=HLQ.LOAD <=== PWX LOAD //EDMPARMS DD DISP=SHR,DSN=YOUR.USERLIB <=== EDMSDIR,EDMUPARM //ERDS01 DD DISP=SHR,DSN=YOUR.????.ERDS01 <=== PRI RESTART DSN //ERDS02 DD DISP=SHR,DSN=YOUR.????.ERDS02 <=== SEC RESTART DSN //SYSPRINT DD SYSOUT=* //SYSIN DD * DELETE_LOG DSNAME=
archive_log_dataset_name
END /*

0 COMMENTS

We’d like to hear from you!