Hi, thank you for the reply.On the same logic, i have two more variations. I think you will be able to crack it in a minute. These are the variations. First variation is: data have; input Measure1 Measure2 Measure3 Measure4 Measure5 Measure6 Measure7 Measure8 Measure9 Total_Score Target_Score Indicator1 Indicator2 Indicator3 Indicator4 Indicator5 Indicator6 Indicator7 Indicator9; cards; 12 15 20 25 30 35 37 40 45 259 350 . . 1 . . . . . . 6 9 12 25 30 32 35 37 40 226 350 . . . . 1 . . . . 12 15 18 20 25 26 28 30 32 206 300 . . . 1 . . . . . ; run; for each of the measure there is indicator associated with it. for colum Measure the corresponding indicator is column Indicator1, for Measure2 the corresponding indicator is Indicator2. Now i have the same logic as above but with slight variation. If a particular measure has indicator attached to it, it should increment by 10 and the rest of the process is as above with other measures increasing by 1. in above data. for first record, Measure3 has Indicator3 as 1, so it shud increase by 10. In second record, measure5 has Indicator5 as 1, so it should increase by 10 with other measures increasing by 1. Variation 2: data have; input Measure1 Measure2 Measure3 Measure4 Measure5 Measure6 Measure7 Measure8 Measure9 Total_Score Target_Score Indicator1 Indicator2 Indicator3 Indicator4 Indicator5 Indicator6 Indicator7 Indicator9 impute1 impute2 impute3 impute4 impute5 impute6 impute7 impute8 impute9; cards; 12 15 20 25 30 35 37 40 45 259 350 . . 1 . . . . . . . 1 . . . . . . . 6 9 12 25 30 32 35 37 40 226 350 . . . . 1 . . . . . . . . 1 . . . . 12 15 18 20 25 26 28 30 32 206 300 . . . 1 . . . . . . . . . 1 . . . . ; run; This is addition to above requirement. This has colums Impute1-Impute9 with it. Each of the Impute1-Impute9 is associated with Measure1-Measure9. If impute column is 1, then the particular measure should not increase. for example, in above record. Mesure3 has Indicator3 as 1, so it should increase by 10, Measure2 has Impute2 as 1, so it should not increase, but other measures should increase as before logic by 1. for second record, Measure5 has Indicator5 as 1 and Impute5 as 1, so impute5 takes precedence and it should not increase. The concept is whereever there is Indicator column has 1 the corresponding measure should increase by 10. Whereever there is Impute column has 1 the corresponding measure should not increase. Whereever the Impute Indicator column and Impute column is 1, the corresponding measure should not change. All other measure increases by 1 as above logic. Hope you can help me out. Thanks, Saravanan
... View more