Syntax of the enhanced AUDIT commands

When you issue the AUDIT command, you must specify one of the required parameters, to indicate a primary category of control information, which will "drive" that invocation of AUDIT. The optional parameters qualify what to audit, the output destination, and other qualifying information.

Read syntax diagramSkip visual syntax diagram
>>-AUDIT-------------------------------------------------------->

>--+-+-ABARSCONTROLS-+--+----------+--+----------------+---------------+-><
   | '-ABRCTL--------'  '-(agname)-'  '-| Fragment B |-'               |   
   |                                      .-NOFIX-.                    |   
   +-+-COMMONQUEUE-+--+----------------+--+-------+--------------------+   
   | '-CQUEUE------'  '-(---RECALL---)-'  '-FIX---'                    |   
   +-+-COPYPOOLCONTROLS-+--+----------+--+----------------+------------+   
   | '-CPCTL------------'  '-(cpname)-'  '-| Fragment B |-'            |   
   +-+-DATASETCONTROLS-+--(-+-MIGRATION-+-)--+----------------+--------+   
   | '-DSCTL-----------'    '-BACKUP----'    '-| Fragment A |-'        |   
   |                                  .--------.                       |   
   |                                  V        |                       |   
   +-+-DIRECTORYCONTROLS VOLUMES-+--(---volser-+-)--+----------------+-+   
   | '-DIRCTL VOLUMES------------'                  '-| Fragment B |-' |   
   +-+-MEDIACONTROLS-+--| Fragment C |---------------------------------+   
   | '-MEDCTL--------'                                                 |   
   +-+-VOLUMECONTROLS-+--(BACKUP)--+----------------+------------------+   
   | '-VOLCTL---------'            '-| Fragment D |-'                  |   
   '-+-VOLUMECONTROLS-+--(-+-MIGRATION---+-)--+----------------+-------'   
     '-VOLCTL---------'    '-RECOVERABLE-'    '-| Fragment E |-'           

A: DATASETCONTROLS optional parameters

|--+---------------------------------+--+----------------+------|
   |                    .--------.   |  '-| Fragment B |-'   
   |                    V        |   |                       
   +-+-DATASETNAMES-+-(---dsname-+-)-+                       
   | '-DSNAME-------'                |                       
   +-LEVELS-+-------------------+----+                       
   |        |   .-----------.   |    |                       
   |        |   V           |   |    |                       
   |        '-(---qualifier-+-)-'    |                       
   '-RESUME--------------------------'                       

B: Additional optional parameters

   .-NOFIX-.  .-SYSOUT------------------.  .-REPORT(ERRORS)-.   
|--+-------+--+-------------------------+--+----------------+--->
   '-FIX---'  +-+-OUTDATASET-+-(dsname)-+                       
              | '-ODS--------'          |                       
              '-SYSOUT-+---------+------'                       
                       '-(class)-'                              

>--+---------------------------------+--------------------------|
   |                .-DYNAMIC----.   |   
   '-SERIALIZATION(-+-CONTINUOUS-+-)-'   

C: MEDIACONTROLS parameters

|--+----------------------------------+--+----------------+-----|
   +-(-+-SMALLDATASETPACKING-+-)------+  '-| Fragment B |-'   
   |   '-SDSP----------------'        |                       
   |          .--------.              |                       
   |          V        |              |                       
   '-VOLUMES(---volser-+-)-+--------+-'                       
                           '-RESUME-'                         

D: VOLUMECONTROLS (BACKUP) optional parameters

|--+-----------------------------------------+------------------>
   |          .--------.                     |   
   |          V        |                     |   
   +-VOLUMES(---volser-+-)-------------------+   
   '-+-BACKUPTYPE-+--(-+-DAILY-+-------+-+-)-'   
     '-BTYPE------'    |       '-(day)-' |       
                       +-SPILL-----------+       
                       '-ALL-------------'       

>--+----------------+-------------------------------------------|
   '-| Fragment B |-'   

E: VOLUMECONTROLS (MIGRATION and RECOVERABLE) optional parameters

|--+------------------------+--+----------------+---------------|
   |           .--------.   |  '-| Fragment B |-'   
   |           V        |   |                       
   '-VOLUMES-(---volser-+-)-'