Program
proc authlib lib=klmno;
create securedlibrary="KLMNOEmps"
securedfolder="Department XYZZY"
read=abcdefgh
write=ijklmno
alter=pqrstuvw;
tables employees /
pw=lmno;
tables empinfo /
read=abcd
write=efgh
alter=ijkl;
tables product;
run;
quit;
Program Description
Library KLMNO has Employees, EmpInfo, and Product data
sets.The Employees data set is protected
with the PW= password lmno
. The EmpInfo data
set is protected with a READ= password abcd
,
a WRITE= password efgh
, and an ALTER= password ijkl
.
The Product data set is not protected.
Using the CREATE statement, enter the name of the metadata
folder and name the secured library object in the SAS Metadata Server.Specify the values for READ= password abcdefgh
,
WRITE= password ijklmno
, and ALTER= password pqrstuvw
to
create a longer metadata-bound library password.
create securedlibrary="KLMNOEmps"
securedfolder="Department XYZZY"
read=abcdefgh
write=ijklmno
alter=pqrstuvw;
Use the TABLES statement to specify the current password
for each data set.When using TABLES
statements, a TABLES statement must be specified for all data sets.
tables employees /
pw=lmno;
tables empinfo /
read=abcd
write=efgh
alter=ijkl;
tables product;
run;
quit;
Results:The library KLMNO
is bound, and all three data sets are bound with the same passwords.
The passwords are READ= password abcdefgh
,
WRITE= password ijklmno
, and ALTER= password pqrstuvw
.