Use one of the following methods to delete log data:
- Use the IXGDELET service in an application to delete data from
the log stream as soon as the data is no longer needed. This will
help to manage log data set storage consumption by making sure log
data sets are deleted as soon as possible. See z/OS MVS Programming: Assembler Services Reference IAR-XCT
for using the IXGDELET service.
Use RETPD / AUTODELETE logstream
options when new data sets are acquired during offload processing.
If you specify the RETPD and AUTODELETE parameters to set a retention
period and automatic deletion policy for a log stream, the data set
becomes eligible for deletion once the retention period has expired
for all the log data in the log data set.
- For logrec log stream data, run EREP using the LOGR subsystem
with the delete option. See program IFBEREPS in SYS1.SAMPLIB for examples
of archiving and deleting logrec log data sets. See z/OS MVS Diagnosis: Tools and Service Aids
for using EREP.
- For OPERLOG, use the IEAMDBLG program in SYS1.SAMPLIB with the
DELETE parameter.
- For the CICS® log manager, CICS automatically deletes data
in a CICS system log. For CICS general logs, use the RETPD
and AUTODELETE parameters in the log stream definition to manage the
amount of log data automatically. You can also use CICS/VR to archive
or delete CICS log data.
Note that using DFHSM to migrate log stream data sets to tape does not solve the data set directory full condition
because the migrated data sets will still count toward the data set
directory entry limit. Deleting DASD log stream data sets (using a
TSO/E DELETE command, for example) also does not solve
the data set directory full condition.