You want
your application to open a password-protected data set.
This recipe
applies to the local,
SAS/SHARE, IOM, and Base SAS providers. Sample
code for ADO is included.
SAS supports
three types of data set passwords: READ, WRITE, and ALTER. SAS also
supports a PW= data set option that assigns the same password for
each level of protection. To access a data set that is protected with
the PW= data set option, set each ADO or OLE DB property that provides
the level of access that you need.
Note: For complete
information about SAS data set passwords, see
SAS Language
Reference: Concepts.