Hi, I want to create a SAS macro that will be used to create dataset names for each dataset.
I made it earlier but don't remember it. It was something like this:
%macro test ( dataset1= , dataset 2= );
%mend;
% test;
Data &dataset1. ;
Set abc;
Run;
Data &dataset2.;
Set xtz;
Run;
%mend test;
%test;
%dataset1=data_1:
%dataset2= data_2;
%mend test;
Is the above code correct??