I'm using SAS Studio online, I"m having trouble setting the character length and in the last if statement of my loop also won't work, any help would be greatly appreciated. This is my code... Data golf; infile '/home/c153469110/golf.txt'; input Distance_yards 18-22 Golfer_ID 28-29 Brand $ 39; run; proc print data=golf; run; Data golf; set golf; length Distance_Catagory $20; if Distance_Yards<290 then do; Distance_Catagory='Poor'; end; if Distance_Yards>=290 and Distance_Yards<=310 then do; Distance_Catagory='Average'; end; if Distance_Yards<=310 then do; Distance Catagory='Above Average'; end; run;
... View more