Sample Archiving Setup
Assume that you have the following requirements for archiving:
- Statistics records must remain available for seven days in the file pair list before being overwritten by new records. After seven days, they must be available in archive files.
- Each archive file can contain no more than one day of statistics records.
- Batch jobs executing the IDCAMS utility to copy the records to sequential files on magnetic tape must perform the archiving. The archive files must be available for 365 days.
- Maintain a directory of archive files.
- Ensure that statistics data is not overwritten before being archived.
- Establish a procedure for making archived statistics available to the SELECT STATISTICS command.
Sample Statistics Configuration
This section describes how to configure the statistics facility to satisfy these requirements.
You must determine how to configure the statistics file pair list. The rate at which you log statistics records, availability of the statistics records for seven days before being overwritten, and each archive file containing no more than one day of statistics records determine the size and number of file pairs required.
For the statistics records to remain available for seven days after being generated, the total record capacity of all the entry-sequenced statistics files is seven times the average number of records generated daily. Run the DGASSTAT utility to determine how many records, on average, the system writes daily.
According to the sample requirements, a single archive file contains up to the same number of records as a single statistics entry-sequenced cluster, and an archive file contains no more than a day of records. Each ESDS also holds about a day of records, implying that seven statistics file pairs exist. Use the STAT.SWITCH.TIME initialization parameter to initiate a file pair switch every day at midnight rather than depend on a file pair switch occurring regularly as a result of file pairs filling. To ensure that the switches do not occur before midnight as a result of a file pair becoming full, make each ESDS slightly larger than the daily requirement.
If you determine, using DGASSTAT, that the system writes statistics records at the rate of about 11,000 daily, define seven file pairs each with a capacity of about 12,000 records (RECORDS(12000)). This figure implies that the associated key-sequenced clusters are defined with RECORDS(9000).
RECORDS(365) defines the directory of archive files because the system generates the archive files at the rate of one daily and retains the files for one year.
SYSTEMS.CD.STATS is the data set name prefix for the statistics clusters. The data set name of the archive directory is SYSTEMS.CD.STATS.DIRECTRY. Member ARCHPROC in the data set SYSTEMS.CD.ADMINLIB contains the archive Process that is submitted at file pair switch time.
The following initialization parameters are necessary for the sample archive requirements.
|
The archive Process in the member ARCHPROC follows.
|
The archive job stream in SYSTEMS.CD.JCL(ARCHJOB) follows.
|
The previous archive job stream indicates that the IBM® Connect:Direct® administrator manages requests for access to archived statistics records. The submitted requests specify a range of dates and times for the necessary records.
The administrator issues the INQUIRE STATDIR command to determine which archive files contain records for the specified period. The administrator runs the following job stream to create a usable archived statistics file pair for each archive file that it finds. The first step creates the archive file and copies the record to it. The second step builds the index information.
|
The archived statistics are now available and you can issue SELECT STATISTICS against the statistics by coding the name of the key-sequenced file with the ARCHDSN parameter, as follows.
|