Defining the Audit VSAM Dataset
You can create a new AUDIT dataset using the
DEFAUDIT member located in the Platform Server JCL library.
- Procedure
- Edit the
DEFAUDITmember in the JCL library to meet your installation requirements.Two job steps are included in theDEFAUDITJCL:- Invoke
IEBDGto generate a dummy record. - Invoke
IDCAMSto do the following:- Delete the VSAM file if it already exists.
- Define the VSAM cluster.
- Repro one record into the VSAM file.
- Define alternate index 1.
- Define path 1.
- Define alternate index 2.
- Define path 2.
- Build the index for alternate index 1.
- Build the index for alternate index 2.
- Invoke
- Submit the JCL and verify that the linear VSAM file is successfully created.
The GLOBAL parameter
MAX_AUDIT_RECORDSdefines how many audit records are saved in the Platform Server audit file. The default value is25,000records. Each audit record is 4176 bytes. Ensure enough space is allocated to the audit file to contain all of the records defined by the GLOBALMAX_AUDIT_RECORDSparameter.When defining the VSAM cluster in step 1, you can set the primary and secondary allocations of the audit file by specifying the
RECORDSorCylindersorTracksparameter inDEFAUDITJCL.Note: In some cases, it might be necessary to re-create the audit file. The JCL is written to be able to be rerun. Therefore, after deleting the existing audit file, you will get an error code result when the job runs for the first time. If this is the only error code that you receive, you can ignore it.