Hi,

As Nina L. Werner wrote (see previous), if visible, everyone can use the encrypted password in another SAS code. Of course, encrypted is better but not safer at all. A better solution should be to encrypt the password and that the encryption is linked to a unique (or not unique) userid.

Something like this :
PROC PWENCODE IN="mypassword" USER="USER1 USER2 USER3"; RUN;

=> The resulting encrypted password should be usable in a SAS code but only when that SAS code is executed under one of the specified users (USER1, USER2 or USER3). The encrypted password should not be valid if used in a SAS program submitted by USER4.

Unfortunately, the parameter "USER" is not available... Perhaps an improvement for a future release ?