Your SAS source code statements (in a file) must be protected using an OS-standard utility of some type. You can then compile your program in SAS, saving the compiled object to a SAS library and password-protect that file/object -- while still making it available for execution.