SAS File Passwords

When you use SAS Federation Server LIBNAME engine, SAS passwords are supported only for unsecured DSN definitions. An unsecured DSN definition is a DSN for which SAS Federation Server authorization is not enabled. If you specify a SAS password to create or read a SAS data set when SAS Federation Server authorization is enabled, the server returns an error.
Base SAS software enables you to restrict access to SAS data sets by assigning SAS passwords when you create the data sets. You can specify three levels of protection: Read, Write, and Alter. Later, to read or update the data set, you specify the appropriate password.
To assign or specify a password, submit the ALTER=, PW=, READ=, and WRITE= password options as follows:
libname myfiles fedsvr server="d1234.us.company.com" 
   port=2171 uid="myid" pwd="mypwd"
   dsn=basedsn;
  
data myfiles.newds (pw=luke);
   set sashelp.class;
run;
In the preceding example, the DATA step assigns the password Luke to the new SAS data set.
For more information about SAS passwords, see SAS Language Reference: Concepts.