Hi everyone, I had a data issue the other day, I resolved it using proc transpose however the results had some limitations. I've recreated the data set as a basic dummy one below (I cannot share the real one): application_ID status total income Type code Desc 74628 1 $45,787 3 main income 74628 2 $4,689 2 other income 74628 3 $57,812 1 one off income 213514 1 $12,789 3 main income 213514 2 $54,713 2 other income 213514 3 $13,574 1 one off income I want to make the income types columns. I ran this code: data test (drop = status type_code desc); set dummy; if Type_code = 1 then one_off_income = total_Income; else if Type_code = 2 then other_income = total_Income; else if type_code = 3 then main_income = total_income; run; and got: application_ID total income one off income main income other income 74628 $45,787 . $45,787 . 74628 $4,689 . . $4,689 74628 $57,812 $57,812 . . 213514 $12,789 . $12,789 . 213514 $54,713 . . $54,713 213514 $13,574 $13,574 . . How do i get it to turn out like this: application_ID total income one off income main income other income 74628 $45,787 $57,812 $45,787 $4,689 213514 $12,789 $13,574 $12,789 $54,713 I don't want to use the transpose function becuase I have heaps of other variables and it errors if I included them all in the var step. I hope the above makes sense. I appreciate any help. Regards Scott
... View more