Hello, Thanks for all the help. We were required to use macros as part of the lesson. I was able to achieve the idea i had in my noob mind using the following code: %macro createm(ind); data xxxxx.&&ccolor&ind.._Vehicle; set xxxxx.carlist(where=(color="&ccolor&ind.")); run; %mend; %macro categ; %do i=1 %to 8; %createm(&i); proc print data = xxxxx.&&ccolor&i.._Vehicle; run; %end; %mend; %categ; Again, thank you for all the help! 😄
... View more