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

JustinJDavies

How can I set a sas data table (sas7bdat) to read-only within a SAS Program? — the table must remain readonly even between sessions, especially if another user registers the library and attempts to write to the dataset. Once these tables have been created I do not wish to ever edit them - they are "point-in-time" reference tables that others and myself may rely on. Being able to lock dow the tables and guarantee that they tables have not been accidentally changed would save a lot of data verification each time these tables are used.

I wish to protect only from dangerous code that may accidentally alter the table, such as :

PROC SORT 
    DATA = JUSTIN.myreadonlytable;
    BY 
        ref
        start_date;
RUN;

I do not mind if someone can alter a read-only flag in the filesystem but I would like that the default behaviour in SAS is to error when an attempt to write to the table occurs.

Joe

If you want to prevent people from accidentally writing to the dataset, then you want to assign an alter password.

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

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

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

From Dev

How can I read .sas7bvew files in R?

From Dev

SAS how to get summary counts within the same dataset

From Dev

SAS : How to iterate a dataset elements within the proc sql WHERE statement?

From Dev

SAS how to get summary counts within the same dataset

From Dev

How to read first n number of columns into a SAS dataset?

From Dev

How can I create SAS html files with names corresponding to a dataset field

From Dev

Can I modify an existing SAS dataset without creating a temporary file?

From Dev

How is this SAS dataset being emptied?

From Dev

SAS - read in only certain filenames

From Dev

How to keep only a specific date pattern within a string in SAS?

From Dev

How to keep only a specific date pattern within a string in SAS?

From Dev

How can I transform this using R or SAS

From Dev

how can i implement subset in r in sas?

From Dev

Read JSON file and save it in SAS dataset

From Dev

Read in Files with pattern match into one SAS dataset

From Dev

Read JSON file and save it in SAS dataset

From Dev

How do I calculate the mode of a string variable within a group in SAS?

From Dev

Can I make SAS work with a .sas7bdat file with a name more than 32 characters long?

From Dev

How to program a counter that iterates in SAS?

From Dev

How can I make a "read-only variable"?

From Dev

How can I make a read-only property mutable?

From Dev

how can i make textarea a read only but will not be greyed out

From Dev

How can I make Unix directory read-only for myself?

From Dev

SAS: how to include all the dataset variables into the model

From Dev

How to eliminate duplicate entries from SAS dataset?

From Dev

How to allocate dataset in a number of equivalent groups in SAS

From Dev

Read only SAS view(on double click too)

From Dev

How can I convert a column of Hex into text in SAS?

Related Related

  1. 1

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

  2. 2

    How can I read .sas7bvew files in R?

  3. 3

    SAS how to get summary counts within the same dataset

  4. 4

    SAS : How to iterate a dataset elements within the proc sql WHERE statement?

  5. 5

    SAS how to get summary counts within the same dataset

  6. 6

    How to read first n number of columns into a SAS dataset?

  7. 7

    How can I create SAS html files with names corresponding to a dataset field

  8. 8

    Can I modify an existing SAS dataset without creating a temporary file?

  9. 9

    How is this SAS dataset being emptied?

  10. 10

    SAS - read in only certain filenames

  11. 11

    How to keep only a specific date pattern within a string in SAS?

  12. 12

    How to keep only a specific date pattern within a string in SAS?

  13. 13

    How can I transform this using R or SAS

  14. 14

    how can i implement subset in r in sas?

  15. 15

    Read JSON file and save it in SAS dataset

  16. 16

    Read in Files with pattern match into one SAS dataset

  17. 17

    Read JSON file and save it in SAS dataset

  18. 18

    How do I calculate the mode of a string variable within a group in SAS?

  19. 19

    Can I make SAS work with a .sas7bdat file with a name more than 32 characters long?

  20. 20

    How to program a counter that iterates in SAS?

  21. 21

    How can I make a "read-only variable"?

  22. 22

    How can I make a read-only property mutable?

  23. 23

    how can i make textarea a read only but will not be greyed out

  24. 24

    How can I make Unix directory read-only for myself?

  25. 25

    SAS: how to include all the dataset variables into the model

  26. 26

    How to eliminate duplicate entries from SAS dataset?

  27. 27

    How to allocate dataset in a number of equivalent groups in SAS

  28. 28

    Read only SAS view(on double click too)

  29. 29

    How can I convert a column of Hex into text in SAS?

HotTag

Archive