thanks a lot, just another question, do you have any suggestion on how to load a table into those arrays? my table has 6 rows and 77 columns there are 2 problems: -even if the columns are all char they have different length, someone is more than 8char long; -the macrovariable compile the array with 6*77=462 but they appear to be all cols instead of rows*cols. my code is looking like this proc sql;
select *
into : DISNEY_CHAR separated by '" "'
from char_by_season;
quit;
data DOGS_IN_DISNEY;
array dogs[&n_rows.,&n_cols.] "&DISNEY_CHAR.";
/*where n_rows=6 and n_cols=77 */
do r=1 to 6;
do c=1 to 77;
if dogs[r,c] in("Goofy","Pluto") then output;
end;
end;
run;
... View more