I have data sets AAD_1, AAD_2, BBD_1, BBD_2, CCD_1, CCD_2, and I want to merge AAD_1, BBD_1 and CCD_1 in data set sim_1 and want to merge AAD_2, BBD_2 and CCD_2 in data set sim_2 For this I am using following sas command but there is one error ( I think error space) data _null_; do j=1 to 2; call execute(cats(" ",'Data sim_',put(j,1.),';merge AAD_',put(j,1.),'BBD_',put(j,1.),'CCD_',put(j,1.),'; run;')); end; The log error is NOTE: CALL EXECUTE generated line. 1 + Data sim_1;merge AAD_1BBD_1CCD_1; run; ERROR: File WORK.AAD_1BBD_1CCD_1.DATA does not exist. Kindly help in this regard
... View more