How can I make a SAS dataset read only within a SAS program? -


how can set sas data table (sas7bdat) read-only within sas program? — table must remain readonly between sessions, if user registers library , attempts write dataset. once these tables have been created not wish ever edit them - "point-in-time" reference tables others , myself may rely on. being able lock dow tables , guarantee tables have not been accidentally changed save lot of data verification each time these tables used.

i wish protect dangerous code may accidentally alter table, such :

proc sort      data = justin.myreadonlytable;              ref         start_date; run; 

i not mind if can alter read-only flag in filesystem default behaviour in sas error when attempt write table occurs.

if want prevent people accidentally writing dataset, want assign alter password.

data test(alter="def");  set sashelp.class; run; 

that prevents altering (writing to, replacing, deleting) dataset without supplying password in same fashion (or typing password in popup window).


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -