Depends on what system you are using. The most secure is to change the permission on the file at the operating system level.
The easiest way is to make sure to use the ACCESS=READONLY option when defining the libref that points to the file. Then users cannot use that libref to modify any of the datasets. You will just make sure that users are doing that consistently.
libname ourdata '/some path' access=readonly;