AUTHLIB Procedure

Example 5: Changing Passwords on Data Sets

Features:
PROC AUTHLIB statement options:
MODIFY statement options:
PW=
TABLESONLY=
TABLES statement options:
PW=

Details

This example shows a different approach for modifying the passwords of existing data sets to match the metadata-bound library passwords. It uses the MODIFY statement. Here, the MODIFY statement is used to modify the data set passwords of the Employees and EmpInfo data sets from Example 2 to match the metadata-bound library password. Neither of these data sets are AES-encrypted.
The MODIFY statement can also be used to modify the data set passwords of data sets that are copied into a metadata-bound library by operating system commands after the library has been bound.

Program

proc authlib lib=abcde; 
    modify tablesonly=yes 
        pw=secretpw;
    tables _all_ / 
        pw=ijkl/secretpw; 
run;    
quit;
 

Program Description

Library ABCDE has Employees, EmpInfo, and Product data sets. The library is bound with metadata-bound library password secretpw. However, in library ABCDE, the Employees and EmpInfo data sets are not bound to the library and are protected with an ALTER= password ijkl. The third data set, Product, is already bound.
proc authlib lib=abcde; 
The MODIFY statement is used to modify the data set passwords of the Employees and EmpInfo data sets to match the metadata-bound library password. The TABLESONLY= statement specifies to modify table passwords only.
    modify tablesonly=yes 
        pw=secretpw;
A TABLES statement must be specified.The existing data sets’ ALTER password is specified in the PW= argument before the metadata-bound password, separated by a slash (/) in the TABLES statement.
    tables _all_ / 
        pw=ijkl/secretpw; 
run;    
quit;
Results:All three data sets are now bound with the secretpw password.
 

Log Examples

Changing Data Set Passwords
76   proc authlib lib=abcde;
77   modify tablesonly=yes
78   pw=XXXXXXXX;
79   tables _all_ /
80   pw=XXXX/XXXXXXXX;
81   run;

NOTE: The passwords on ABCDE.DEPTNAME.DATA do not require modification.
NOTE: The passwords on ABCDE.EMPINFO.DATA do not require modification.
NOTE: The passwords on ABCDE.EMPLOYEE.DATA do not require modification.
82   quit;