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;

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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