@VincentLe
Using data set options in= or indsname= are very valid options and both will work.
As an alternative code as below should do the job as well.
proc sql;
create table want as
select *, 'ds1' as source
from sashelp.class
union corr all
select *, 'ds2' as source
from sashelp.class
;
quit;
... View more