AUDIT ON

Syntax: AUDIT [“fileprefix”] ON media [OR media] [NO WAIT]

where media is one of the following:

[PRIMARY | SECONDARY] alternatepack

[PRIMARY | SECONDARY] ORIGINAL FAMILY

[PRIMARY | SECONDARY] TAPE

The optional fileprefix parameter can specify a title prefix, enclosed in quotes. This enables processing of audit files that have been renamed. PRIMARY refers to the primary audit (for example, BANKDB/AUDIT1234) and SECONDARY refers to the secondary audit (for example, BANKDB/2AUDIT1234). If you don’t specify PRIMARY or SECONDARY, then DATABridge will look for both if the database is declared to have duplicated audit.

Use one of the AUDIT ON parameters to specify where the audit files are stored. This parameter overrides the audit pack specified in the DMSII CONTROL file. This parameter does not specify where audit files are created; it specifies only where DATABridge will look for audit files. During cloning, however, DATABridge ignores the AUDIT ON parameter and reads from the active audit file on the original family where it is being written.

Note: You can combine the AUDIT ON and AUDIT JOB options as in the following syntax:

AUDIT ON packname JOB "WFLname"

Examples
In these examples, the database is called BANKDB and 1234 is the stored audit file. The DASDL has the following statement:

AUDIT TRAIL ATTRIBUTES (PACK = PAUDIT, DUPLICATED ON PACK = SAUDIT).

Modify the following examples to meet your specific needs:

AUDIT ON ORIGINAL FAMILY

% BANKDB/AUDIT1234 ON PAUDIT, or

% BANKDB/2AUDIT1234 ON SAUDIT

AUDIT ON SECONDARY SPARE

% BANKDB/2AUDIT1234 ON SPARE only

AUDIT ON SECONDARY TAPE

% tape called BANKDB/2AUDIT1234 only

AUDIT ON PRIMARY ORIGINAL FAMILY OR PRIMARY TAPE

% BANKDB/AUDIT1234 ON PAUDIT or

% tape called BANKDB/AUDIT1234

AUDIT ON SPARE OR ORIGINAL FAMILY OR TAPE

% BANKDB/AUDIT1234 ON SPARE, or

% BANKDB/2AUDIT1234 ON SPARE, or

% BANKDB/AUDIT1234 ON PAUDIT, or

% BANKDB/2AUDIT1234 ON SAUDIT, or

% tape called BANKDB/AUDIT1234, or

% tape called BANKDB/2AUDIT1234

Note: If you want the AUDIT ON option to look for the audit file on alternatepack, ORIGINAL FAMILY, and TAPE, you must use the AUDIT ON alternatepack OR ORIGINAL FAMILY OR TAPE parameter.