Previous Topic: Implement the Alert History Function

Next Topic: Extract Alert Data for Reporting

Reorganize Files and Monitor Space Usage

Over time, the alert history file can become fragmented. You can reorganize the file to improve its efficiency.

To reorganize the Alert History database for optimum space usage

  1. Copy (REPRO) the alert history file to a backup file.
  2. Delete and redefine the original file.

Use the same attributes that were used when the file was defined at region setup. See the generated S01LCALC member in your INSTALL.JCL data set; this member has the original VSAM definition JCL for the file.

Monitor the amount of disk space used by the data set to estimate the optimal file size and optimal frequency of reorganization.

Example: Back Up Alert History File

This example backs up an alert history file.

//BKALERTH EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//IN       DD   DSN=?prefix.ALERTH,DISP=SHR
//OUT      DD   SN=?prefix.ALERTH.BACKUP.SEQ,DISP=OLD
//SYSIN    DD   *
 REPRO INFILE(IN) OUTFILE(OUT)
/*

The sequential backup file has the following format:

DSORG=PS,RECFM=VB,LRECL=32756,BLKSIZE=32760