Encryption

While encrypting a dataset, you have to use the READ or the PW dataset option. If the password is lost, then only the SAS helpdesk can resolve the situation. The only other way to change the password is to recreate the dataset. We will attempt to encrypt the Air dataset using the following code block:

DATA WORK.Air (ENCRYPT = YES READ=CHAPTER2);
SET SASHELP.Air;
RUN;

PROC PRINT DATA = WORK.Air(READ=CHAPTER2);
RUN;

We will have to specify the password to be able to read the dataset using the print procedure.