Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Set permissions when creating a dataset

Set permissions when creating a dataset

Set permissions when creating a dataset


I am trying to figure out how to set permission while creating a dataset. If that is not possible how do I change permission to dataset that I have already created.

I use pc sas and the datasets are usually on a UNIX box so permission will be something like 775 or 777.

CREATE TABLE TABLE_NAME AS /* Is it possible to set permission here */


RE: Set permissions when creating a dataset

Hi Tariq,

When creating the dataset you have the ability to password protect aspects of it. For example, you can set separate passwords for reading, writing and altering the dataset/view. Alternatively, you can use the pw keyword to assign a full lock on your dataset.


data misc.class(pw=t3432) ;
   set sashelp.class ;
proc print data=misc.class(pw=t3432);

Try substituting pw= with read/write/alter= to see the effects.

If your datasets are stored on a unix box, you can also stick an x command after you create the dataset to apply the desired permissions from within SAS:


x "chmod 744 %sysfunc(pathname(MISC))/class.sas7bdat" ;

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close