Hello!! I´ve made this macro to import several txt files to a dataset. What i also would like to do is to save each imported txt files name into a new dataset? I´ve got no clue how i would go about this. can someone push me in the right direction? Thanks
%macro files();
%if %sysfunc(exist(saslib.data)) %then %do;
%put blabla;
%end;
%else %do;
filename infil("&path.Textfile??????.txt");
data saslib.data;
length var1 8. var2 2. var3 2.;
infile infil dlm=':' firstobs = 2;
input var1 var2 var3;
run;
%end;
%mend files;
... View more