Hi, I am trying to import from a database the datasets a, b, c, d, e, f I can do the following to import it %imp(a, a); %imp(b, b); %imp(c, c); %imp(d, d); %imp(e, e); %imp(f, f); Please can anyone tell me if there is a simple way to create a list and then do a loop over the list? something like %let name_list= a b c d e f
%local i next_name;
%do i=1 %to %sysfunc(countw(&name_list));
%let next_name = %scan(&name_list, &i);
%imp(&next_name, &next_name);
%end; This command does not work. Can anyone help me with this? Thanks
... View more