Specifies whether to encrypt an output SAS data set or SPD Engine data set.
Category: | Table Control |
Restrictions: | Use with output tables only. |
In SPD Engine data sets, cannot be used with COMPRESS=YES | CHAR | BINARY. | |
Data source: | SAS data set, SPD Engine data set |
encrypts the file using AES (Advanced Encryption Standard) algorithm. AES provides enhanced encryption by using SAS/SECURE software. SAS/SECURE is a product within the SAS System. Beginning with SAS 9.4, SAS/SECURE is included with Base SAS software. Before SAS 9.4, SAS/SECURE was an add-on product that was licensed separately. This change makes strong encryption available in all deployments (except where prohibited by import restrictions). You must specify the ENCRYPTKEY= table option when using ENCRYPT=AES. For more information, see ENCRYPTKEY= Table Option.
Requirement | SAS/SECURE software must be in use. |
CAUTION: |
Record
all ENCRYPTKEY= values when using ENCRYPT=AES.
If you forget the ENCRYPTKEY=
value, you lose your data. SAS cannot assist you in recovering the
ENCRYPTKEY= value. The following note is written to the log:
Note: If you lose or forget the ENCRYPTKEY= value, there will be no way to open the file or recover the data. |
does not encrypt the data set.
encrypts the data set using the SASProprietary algorithm. This encryption method uses passwords that are stored in the data set. At a minimum, you must specify the READ= or the PW= table option at the same time that you specify ENCRYPT=YES. Because the encryption method uses passwords, you cannot change any password on an encrypted file without re-creating the table.
create table myfiles.salary {option encrypt=yes read=green} (name char(15), yrsal double, bonuspct double); insert into myfiles.salary {option read=green} values ('Muriel', 34567, 3.2); insert into myfiles.salary {option read=green} values ('Bjorn', 74644, 2.5); insert into myfiles.salary {option read=green} values ('Freda', 38755, 4.1); insert into myfiles.salary {option read=green} values ('Benny', 29855, 3.5); insert into myfiles.salary {option read=green} values ('Agnetha', 70998, 4.1);
select * from myfiles.salary {option read=green};