data want(drop=line); infile datalines truncover; input line $1000.; obs=scan(line,1,' '); road =substr(substr(line,length(scan(line,1,' '))+1),1,index(substr(line,length(scan(line,1,' '))+1),scan(line,-2,' '))-1); paint=scan(line,-2,' '); bright=scan(line,-1,' '); datalines; 1 Center St. 1 43 2 Broadway 1 46 3 Main St. 1 47 4 Main St. 3 54 5 Elm St. 1 55 6 Station Rd. 1 56 7 Center St. 1 59 8 Center St. 4 61 9 Main St. 3 62 10 Center St. 4 62 11 Park Dr. 3 63 12 Main St. 2 64 13 Park Dr. 1 64 14 Broadway 4 64 15 Broadway 2 64 16 Broadway 3 65 17 Station Rd. 3 67 18 Station Rd. 3 67 19 Elm St. 3 68 20 Beech St. 4 71 21 Elm St. 4 72 22 Beech St. 2 75 23 Beech St. 4 75 24 Beech St. 2 76 25 Park Dr. 4 77 26 Elm St. 2 79 27 Station Rd. 2 79 28 Park Dr. 2 84 ; run;
... View more