In Chapter 1, Introduction to SAS Programming, we encrypted a dataset using a password. Encryption can be done both at the Server and the SAS programming level. Most users will never get permission to encrypt at the Server level. However, SAS does offer two methods by which we can encrypt via programming. Earlier, we witnessed encryption via the built-in mechanism in SAS. The other method, known as advanced encryption standard (AES) - 256, is showcased in the following code block. 256 refers to the bit key for encryption.
The following is the syntax for SAS proprietary encryption:
Data Library.File (encrypt = yes pw = password);
Data Library.File (encrypt = yes write = password);
Data Library.File (encrypt = yes alter = password);
Data Library.File (encrypt = yes read = password);
The following is the syntax for AES encryption:
Data Library.File (encrypt = aes pw = key...