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-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 647 views
  • 5 likes
  • 3 in conversation