While rare, there may be reasons for directly examining the content of a z/OS LogStream or even removing records from a LogStream. The utility, SQDutil can be used to accomplish both. The dump action is non-destructive and can be used to view both the contents and the Block ID and Storeclock associated with each record in the LogStream. The clean action is DESTRUCTIVE and will permanently remove records from the LogStream. For more information about this utility, see SQDUTIL.
BEWARE: Clean will do what you ask. Double check the content of the LogStream and the value specified for the Block ID or Storeclock using the dump action first. Be very cautious before using Clean against a production datastore.
BEWARE: SQDutil has no way to know what is in the LogStream specified. It can clean any LogStream the user has write access to, including a VSAM forward recovery log or even a system zlog... use at your own risk!
//SQDUTIL JOB 1,MSGLEVEL=(1,1),MSGCLASS=H,NOTIFY=&SYSUID
//*
//JOBLIB DD DISP=SHR,DSN=SQDATA.V400.LOADLIB
//*
//SQDUTIL EXEC PGM=SQDUTIL
//SQDPUBL DD DSN=SQDATA.NACL.PUBLIC,DISP=SHR
//SQDPKEY DD DSN=SQDATA.NACL.PRIVATE,DISP=SHR
//SQDPARMS DD *
dump zlog:///SQDATA.FILECDC.LOG1
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*SQDLOG DD DUMMY
//SQDLOG DD SYSOUT=*
//
//SQDUTIL JOB 1,MSGLEVEL=(1,1),MSGCLASS=H,NOTIFY=&SYSUID
//*
//JOBLIB DD DISP=SHR,DSN=SQDATA.V400.LOADLIB
//*
//SQDUTIL EXEC PGM=SQDUTIL
//SQDPUBL DD DSN=SQDATA.NACL.PUBLIC,DISP=SHR
//SQDPKEY DD DSN=SQDATA.NACL.PRIVATE,DISP=SHR
//SQDPARMS DD *
clean --stck=0xca742e39763fd005 zlog:///SQDATA.FILECDC.LOG1
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*SQDLOG DD DUMMY
//SQDLOG DD SYSOUT=*
//