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;
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;
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;
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.
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.
Ready to level-up your skills? Choose your own adventure.