BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello,

 

The old SAS code was :

 

data out1a.jourouvrableprovds (write=po alter=po);
set in1.jourouvrableprovds  (write=po alter=po);
run;

Now If I want to use this instead:

 

proc datasets;
copy in=in1 out=out1a;
select jourouvrableprovds;
run;
quit;

Where do we put the write and alter access  with the proc datasets;

2 REPLIES 2
Ksharp
Super User

Is this what you are looking for ?

libname in1 v9 'c:\temp\';
libname out1a v9 'c:\temp\z';




proc datasets library=out1a nowarn;
copy in=in1 out=out1a;
select jourouvrableprovds;
run;
modify jourouvrableprovds(write=po alter=po read=xx);
run;
quit;
ChrisNZ
Tourmaline | Level 20

Use a slash to change a password.

data T1(pw=R);
 A=1;
run;

proc datasets nolist ;
  modify T1(write=R/W alter=R/A read=R/RR);
  run;
quit;

proc print data=T1(read=RR);
run;

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1121 views
  • 5 likes
  • 3 in conversation