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-)
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.
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.