Hi SAS, I have a data set which contains over 30 character and numeric variables. Based on this dataset, I generate a scorecard. Now, I want to replace each variable's value with the score I got. Here is part of my dataset: ID DAYS GRADE REMAINING_PERIOD 1 5 2A 5.23 2 6 2C 10.95 3 8 2D 20.22 4 3 1C . 5 4 2B 8.66 Here is part of my scorecard: Variable Group Lable Scorecard Points DAYS 2 2<= DAYS< 5 12 DAYS 3 5<= DAYS< 6 -4 DAYS 4 6<= DAYS< 9 7 GRADE 1 2A, 2C, 3A 6 GRADE 2 2D 55 GRADE 3 1C, 2B, 3B, _MISSING_, _UNKNOWN_ 6 GRADE 4 0, 4 8 REMAINING_PERIOD 3 4.66<= REMAINING_PERIOD< 9.28 13 REMAINING_PERIOD 4 9.28<= REMAINING_PERIOD< 11.65 18 REMAINING_PERIOD 5 11.65<= REMAINING_PERIOD< 23.32, _MISSING_ 9 The below one is the result I want to generate: SCORE TABLE ID DAYS GRADE REMAINING_PERIOD 1 -4 6 13 2 7 6 18 3 7 55 9 4 12 6 9 5 12 6 13 I can do it using DATA, IF, ELSE IF, ELSE, RUN. But since I have more than 150 groups in my scorecard, it is really a time-consuming work. Could any expert suggest me an easier and time-consuming way? I am thing maybe I can use some REPLACE procedure, but not familiar with it. Could you help me?
... View more