You could switch to proc import, but you need one for each sheet, so keeping libname-statement seems to be easier. You can copy datasets using proc copy:
proc copy in=mylib out=work;
run;
This step copies all sheets/datasets from mylib to work.
For renaming variable proc datasets with modify seem to be the best tool.
You could switch to proc import, but you need one for each sheet, so keeping libname-statement seems to be easier. You can copy datasets using proc copy:
proc copy in=mylib out=work;
run;
This step copies all sheets/datasets from mylib to work.
For renaming variable proc datasets with modify seem to be the best tool.
As you anyway have to copy the data just use a data step where you can also rename the variables and do whatever other transformations you need.
Using a SAS data step makes it also really simple to combine the two source sheets into a single table in Work.
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. Sign up by March 14 for just $795.