I don't see a way to do this with proc datasets (nor proc copy) but it would be nice to have. Maybe something like:
proc datasets lib=dash;
copy out=cldast promote=yes;
run;
You could suggest it: https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas
In the meantime, proc cas can be used to promote all the tables in a caslib:
proc cas;
table.tableinfo result=tablesToPromote / caslib="cldast";
do i = 1 to dim(tablesToPromote.TableInfo);
tname = tablesToPromote.TableInfo[i,'Name'];
table.promote / caslib="cldast" name=tname;
end;
quit;
... View more