Previous Page | Next Page

File Protection

Using Password-Protected SAS Files in DATA and PROC Steps

To access password-protected files, use the same data set options that you use to assign protection.

Passwords are hierarchical in terms of gaining access. For example, specifying the ALTER password gives you read and write access. The following example creates the data set STATES, with three different passwords, and then reads the data set to produce a plot:
data mylib.states(read=green write=yellow alter=red);
   input density crime name $;
151.4 6451.3 Colorado
... more data lines ...

proc plot data=mylib.states(alter=red);
   plot crime*density;

Previous Page | Next Page | Top of Page