General form, DATASETS
procedure to initiate an audit trail:
PROC DATASETS LIB=libref <NOLIST>;
AUDIT SAS-data-set <SAS-password>;
INITIATE;
QUIT;
AUDIT
initiates and controls
event logging to an audit file.
libref
is the name of the
library where the data set to be audited resides.
NOLIST
suppresses the directory
listing.
SAS-data-set
is the name of the
SAS data set that you want to audit.
SAS-password
is the SAS data set
password, if one exists.
INITIATE
begins the audit trail
on the data set specified in the AUDIT statement.
|
proc datasets nolist; audit capinfo; initiate; quit;
60 audit capinfo; 61 initiate; WARNING: The audited data file WORK.CAPINFO.DATA is not password protected. Apply an ALTER password to prevent accidental deletion or replacement of it and any associated audit files. 62 quit; NOTE: The data set WORK.CAPINFO.AUDIT has 0 observations and 13 variables. |