Using the journaling facility


This section describes the HCI's extensive journaling (logging) facility. Every online system requires a method for recording what has occurred within that system in order that problems can be researched later. The journaling facility is a separate task within the HCI. This task is responsible for writing records to the current journal data set. Additionally, this task is responsible for allocating, deallocating, opening, and closing the journal data sets as necessary. Any number of individual journal data sets can be configured into the HCI although only one of them is allocated and opened at a time. Each of these is a VSAM ESDS, and is usually defined with no secondary extents.
One journal is active at a time. The first one specified in the configuration member (see <HCICNJCB Element) is dynamically allocated and opened. Journal records are written to this data set. When it fills, or upon an operator command, this data set is closed and dynamically deallocated. The next data set in the list is then allocated and opened, and journaling continues.
When the last journal in the list has been filled, the first one is again allocated and opened. In order to preserve journal data, ensure that the specified number and size of journal data sets is large enough to allow journaling to continue while the batch journal print or journal unload is run.

Allocating and Initializing Journal Data sets

The following code block shows an example of executing IDCAMS to create a journal data set. Replicate the control statements in this example to create more than one VSAM ESDS.

JCL to Allocate Journal data sets

//*
//* place your job card here
//*
//DEFINE EXEC PGM=IDCAMS,REGION=3M
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE HCI.VSAM.JOURNAL CLUSTER
DEFINE CLUSTER (NAME(HCI.VSAM.JOURNAL) - TRK(270) VOL(??????) -
CISZ(16384) SPANNED -
BUFSP(163840) -
RECSZ(60 32600) NONINDEXED REUSE - SHR(1 3) SPEED)
/*

Initialize the journal whenever its contents are no longer of interest. JCL to initialize a journal data set follows:

JCL to Initialize Journal data sets

//*
//* place your job card here
//*
//INIT EXEC PGM=IDCAMS,REGION=3M
//SYSPRINT DD SYSOUT=*
//DUMMY DD DUMMY,DCB=(RECFM=VB,LRECL=32604,BLKSIZE=32608)
//JOURNAL DD DSN=HCI.VSAM.JOURNAL,DISP=SHR
//SYSIN DD *
REPRO INFILE(DUMMY) OUTFILE(JOURNAL)
/*

Replace the DSN for the journal by the name used at your installation.

Important

The BMC AMI Workbench Host Communication Configuration Facility (HCCF) automates the coding of the <HCICNJCB elements and the generation of the JCL to allocate and initialize the HCI journals. 

This section describes the HCI's extensive journaling (logging) facility. Every online system requires a method for recording what has occurred within that system in order that problems can be researched later.

The journaling facility is a separate task within the HCI. This task is responsible for writing records to the current journal data set. Additionally, this task is responsible for allocating, deallocating, opening, and closing the journal data sets as necessary.
Any number of individual journal data sets can be configured into the HCI although only one of them is ever allocated and opened at a time. Each of these is a VSAM ESDS, and is usually defined with no secondary extents.

One journal is active at a time. The first one specified in the configuration member (see <HCICNJCB Element) is dynamically allocated and opened. Journal records are written to this data set. When it fills, or upon an operator command, this data set is closed and dynamically deallocated. The next data set in the list is then allocated and opened, and journaling continues.
When the last journal in the list has been filled, the first one is again allocated and opened. In order to preserve journal data, ensure that the specified number and size of journal data sets is large enough to allow journaling to continue while the batch journal print or journal unload is run.

Allocating and Initializing Journal Data sets

The following code block shows an example of executing IDCAMS to create a journal data set. Replicate the control statements in this example to create more than one VSAM ESDS.
JCL to Allocate Journal data sets

//*
//* place your job card here
//*
//DEFINE EXEC PGM=IDCAMS,REGION=3M
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE HCI.VSAM.JOURNAL CLUSTER
DEFINE CLUSTER (NAME(HCI.VSAM.JOURNAL) - TRK(270) VOL(??????) -
CISZ(16384) SPANNED -
BUFSP(163840) -
RECSZ(60 32600) NONINDEXED REUSE - SHR(1 3) SPEED)
/*

Initialize the journal whenever its contents are no longer of interest. JCL to initialize a journal data set follows:
JCL to Initialize Journal data sets

//*
//* place your job card here
//*
//INIT EXEC PGM=IDCAMS,REGION=3M
//SYSPRINT DD SYSOUT=*
//DUMMY DD DUMMY,DCB=(RECFM=VB,LRECL=32604,BLKSIZE=32608)
//JOURNAL DD DSN=HCI.VSAM.JOURNAL,DISP=SHR
//SYSIN DD *
REPRO INFILE(DUMMY) OUTFILE(JOURNAL)
/*

Replace the DSN for the journal by the name used at your installation.

Important

The BMC AMI Workbench Host Communication Configuration Facility (HCCF) automates the coding of the <HCICNJCB elements and the generation of the JCL to allocate and initialize the HCI journals.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*