Chapter Contents

Previous

Next
ENCRYPT=

ENCRYPT=



Encrypts SAS data files

Valid in: DATA step and PROC steps
Category: Data Set Control
Restriction: Use with output data sets only.


Syntax
Syntax Description
Details
Example
See Also

Syntax

ENCRYPT=YES | NO

Syntax Description

YES
encrypts the file. The encryption method uses passwords. At a minimum, you must specify the READ= or the PW= data set option at the same time that you specify ENCRYPT=YES. Because the encryption method uses passwords, you cannot change any password on an encrypted data set without re-creating the data set.

NO
does not encrypt the file.

CAUTION:
Record all passwords. If you forget the password, you cannot reset it without assistance from SAS Institute. The process is time-consuming and resource-intensive.  [cautionend]


Details


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 use this data set, specify the read password:

proc contents data=salary(read=green);
run;

See Also

Data Set Options:

ALTER=
PW=
READ=
WRITE=

"SAS File Encryption" in SAS Language Reference: Concepts


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.