I'm stumped - how do I copy a dataset within the same library and give the copy a new name?
Copying it to another library, renaming it, then moving it back works.....but I can't figure out how to do this entirely within the original library. I don't always have a "spare" library handy...and prefer to keep the original timestamp etc. intact hence wanting to use PROC DATASETS or PROC COPY.
I'd use the operating system for this, since in my case it's a UNIX, with cp -p
I totally agree with you. It's an astonishing miss in such a feature rich language like SAS. Why don't you propose such an enhancement? I'll vote for it.
https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas
The suggestion has been posted: https://communities.sas.com/t5/SASware-Ballot-Ideas/proc-datasets-copy-to-newname-within-library/idi...
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.