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...
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.