Hello,
Here's the task I would like to do.
I would like to copy let's say a spde dataset named datasetA , from library sasdata_staging to library sasdata, with zero observation in it and rename it datasetB.
I have started with this code:
options obs=0 msglevel=i;
proc copy in=sasdata_staging out=sasdata;
select datasetA (rename=(datasetB=datasetB));
run;
but I am not sure for the rename possibility with proc copy
Does someone has a suggestion to make
Regards,
Why so complicated?
data sasdata.datasetb;
set staging.dataseta (obs=0);
run;
sasdata_staging is an invalid name for a SAS library (more than 8 characters).
Why so complicated?
data sasdata.datasetb;
set staging.dataseta (obs=0);
run;
sasdata_staging is an invalid name for a SAS library (more than 8 characters).
Maybe:
data sasdata.datasetb;
stop;
set staging.dataseta;
run;
B-)
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.