The levels of protection for views and stored programs differ slightly from other types of SAS files.
Passwords affect the actual view definition or view descriptor as well as the underlying data.
In this way, when you use the view later, you can access the underlying data without re-specifying the password. If you are running SAS in batch or noninteractive mode, you receive an error message. To prevent someone from updating the underlying data, assign write protection to the view. When you create a DATA step view using a password-protected SAS data set, specify the password in the view definition. In this way, when you use the view, you can access the underlying data without respecifying the password.