Chapter Contents |
Previous |
Next |
Encryption provides security of your SAS data outside the SAS System by writing to disk the encrypted data that represents the SAS data. The data is decrypted as it is read from the disk.
Encryption does not affect file access. However, SAS honors all host security mechanisms that control file access. You can use encryption and host security mechanisms together.
Encryption is implemented with the ENCRYPT= data set option. You can use the ENCRYPT= data set option only when you are creating a SAS data file. You must also assign a password when encrypting a file. At a minimum, you must specify the READ= or the PW= data set option at the same time you specify ENCRYPT=YES. Because passwords are used in the encryption method, you cannot change any password on an encrypted data set without re-creating the data set.
The following rules apply to data file encryption:
Example |
This example creates an encrypted SAS data set:
data salary(encrypt=yes read=green); input name $ yrsal bonuspct; datalines; Muriel 34567 3.2 Bjorn 74644 2.5 Freda 38755 4.1 Benny 29855 3.5 Agnetha 70998 4.1 ; | |
To print this data set, specify the read password:
proc print data=salary(read=green); run; |
Passwords and Encryption with Generation Data Sets, Audit Trails, Indexes and Copies |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.