Hello, I created the following grouping of variables: %let practice_size= doctors, nurses, patients; %let market=income, population, race; %let organization=med_school, multi_market, affiliation; For each of the variables listed above, I then created a new variable called check_variablename. So I have check_doctors, check_nurses... check_affiliation. I am now trying to sum these check variables by the categories I created above. So I want FV_practice_size to be the sum of check_doctors, check_nurses, and check_patients. Is there a way to combine this "check" prefix with the %let statements. The following code is not functioning how I want it to. data FV_new; set FV_checks; FV_practice_size=sum(of check_&practice_size.); FV_organization=sum(of check_&organization.); FV_market=sum(of check_&market.); run; The data looks like this: doctors comp_doctors check_doctors nurses comp_nurses check_nurses 100 90 1 500 425 0
... View more