|Tips:||The AUDIT statement takes one of two forms, depending
on whether you are initiating the audit trail or suspending, resuming,
or terminating event logging in an audit file.
You can define attributes such as format and informat for the user variables in the data file by using the PROC DATASETS MODIFY statement.
|See:||Understanding an Audit Trail in SAS Language Reference: Concepts|
gennum=2specifies MYDATA#002). Specifying a negative number is a relative reference to a historical version in relation to the base version, from the youngest to the oldest (that is,
gennum=-1refers to the youngest historical version). Specifying 0, which is the default, refers to the base version. The parentheses are required.
proc datasets library=mylib; audit myfile (alter=password); initiate; log data_image=no before_image=no data_image=no; run;
proc datasets lib=mylib; /* all audit image types will be logged and the file cannot be suspended */ audit myfile (alter=password); initiate audit_all=yes; quit;The following example terminates an audit file:
proc datasets lib=mylib; audit myfile (alter=password); terminate; quit;
AUDIT file <(SAS-password)>;
AUDIT file <(<SAS-password><GENNUM=integer>)>;