Using SAS macro, I would like to generate subset of files using data driven method. Can someone direct me where to start? For example, I have a data set like following:
data student;
var v1 $ v2 $ v3;
datalines ;
f j 20
f j 20
f j 22
f s 18
f s 18
m j 19
m j 19
m s 20;
Instead of using 'if' statement for each variable category, I want SAS macro recognize each value in variables and make subsets of data. Do I need to look into loop function or symput (after making proc freq)? thank you, KKK