data work.RUCA_class; set work.RUCA_class; length cat_A $35; if RUCA30 = ('1.0','1.1','2.0','2.1','3.0','4.1','5.1','7.1','8.1','10.1') then cat_A = 'Urban Focused'; if RUCA30 = ('4.0','4.2','5.0','5.2','6.0','6.1') then cat_A = 'Large Rural City/Town (micropolitan) focused'; if RUCA30 = ('7.0','7.2','7.3','7.4','8.0','8.2','8.3','8.4','9.0','9.1','9.2') then cat_A = 'Small Rural Town Focused'; if RUCA30 = ('10.0','10.2','10.3','10.4','10.5','10.6') then cat_A = 'Isolated Small Rural Town Focused'; run; I converted the variable to a character and added the length but I am still getting the same error message. Am I not creating the variable 'cat_A' properly?
... View more