Description
CAIAUDIT is a logging and reporting system for CA products. It is A VSAM dataset and it must be maintained using IDCAMS and CACCDBU0.
Solution
Use CACCDBU0 to backup AUDIT1|AUDIT2.
Step 1. If there are multiple CICS sharing the audit files, close caudpc1/2 in all CICSs.
STEP 2. Shutdown audit
// JOB CACCDBU0 SHUTDOWN AUDIT RUNTIME // EXEC CACCDBU0,SIZE=100K SHUTDOWN AUDIT IMM(YES) /* /
Step 3. Backup this Audit
// EXEC CACCDBU0,SIZE=100K BACKup AUDIT DATaset(AUDIT1|AUDIT2) [EVENT(event-code)] [FROMDate(mmddyy|ddmmyy)] [FROMTime(hhmmss)] [PRODuct(product-code)] [PURGE(NO|YES)] [TODate(mmddyy|ddmmyy)] [TOTime(hhmmss)] [TYPE(EXTEND|MERGE)]
Step 4. Use IDCAMS to DELETE/DEFINE the file.
Punch CAUDPC1.Z and CAUDPC2.Z from the CA install library for the DEFINE JCL.
Step 5. Use CACCDBU0 to INITIALIZE the file.
// EXEC CACCDBU0 INITIALIZE AUDIT DATASET(AUDIT1|AUDIT2)
Step 6. Startup Audit.
// JOB CACCDBU0 START AUDIT RUNTIME // EXEC CACCDBU0,SIZE=100K START AUDIT SUB(POWER|VTAM) /*