The following examples illustrate valid DASDL syntax for the audit trail specification.
Example 1
In this example, an audit trail is requested by using the AUDIT option, and the restart data set R is declared. As no explicit audit trail information is supplied, default values are used.
OPTIONS (AUDIT); R RESTART DATA SET ( X ALPHA(100); ); D DATA SET ( A ALPHA(10); );
Example 2
This example includes specific settings for the following audit trail features:
-
A maximum of 150 areas are assigned to the audit file.
-
Each area length is 2000 blocks.
-
A checksum is used to detect I/O errors.
-
The primary audit file is written to the AUDPACK pack.
-
The audit file is divided in 4 sections.
-
The end-of-file pointer is updated every 50 blocks.
OPTIONS (AUDIT); AUDIT TRAIL ( AREAS = 150, BUFFERS = AUTOMATIC, AREASIZE = 2000 BLOCKS, CHECKSUM = TRUE, PACK = AUDPACK, SECTIONS = 4 , UPDATE EOF = 50 BLOCKS ); R RESTART DATA SET ( X ALPHA(100); ); D DATA SET ( A ALPHA(10); );
Example 3
This example includes specific settings for the following audit trail features:
-
A maximum of 68 areas are assigned to the audit file.
-
Each area length is 100 blocks.
-
The block size is set 900 words.
-
A checksum is used to detect I/O errors.
-
The primary audit file is written to the AUDPACK pack.
-
The primary audit file is written to the tape when the AUDPACK pack is full.
-
The primary audit file is copied twice to the tape and then removed from the AUDPACK pack.
-
The secondary audit file is written to the tape.
-
The end-of-file pointer is updated every 50 blocks.
OPTIONS (AUDIT); AUDIT TRAIL ( AREAS = 68, AREASIZE = 100 BLOCKS, BLOCKSIZE = 900 WORDS, CHECKSUM = TRUE, PACK = AUDPACK ALTERNATE IS TAPE, COPY TO TAPE 2 TIMES AND REMOVE, DUPLICATED ON TAPE DESIGNATED "AUD001" TO "AUD999", VERIFY, UPDATE EOF = 50 BLOCKS ); R RESTART DATA SET ( X ALPHA(100); ); D DATA SET ( A ALPHA(10); );
Example 4
In this example, an audit trail is requested by using the AUDIT option, and the restart data set R is declared. The audit file is written to a tape from the scratch pool POOL2.
OPTIONS (AUDIT); AUDIT TRAIL ( KIND = TAPE SCRATCHPOOL = POOL2 ); R RESTART DATA SET ( X ALPHA(100); ); D DATA SET ( A ALPHA(10); );