I've used call symputx to create a list of macro variables Item 1 to Item N and now I want to transfer them to an array in another datastep so that spot 1 in the array gets Item1, spot 2 gets Item2, etc.
do j=1 to &num_OR;
rulesUsed{j}=&&Item&j;
end;
I read that the double ampersand syntax is the way to reference macro variables like this but I keep getting all sorts of errors. I'm sure there's a simple way around this but I'm new to SAS and no document I've read through that's come up in searches mentions this exact type of problem.
call symputx()
then you must have already had the data in a dataset, just use that dataset again. – Tom