Hi, The structure of your data is not clear to me. Perhaps you could show us the data step used to create your data so we can run it and show us a table of results that you want. When using a character data value, the value should be in quotes, e.g.: if blabla=1 then alfa='a'; For more information on the if statement, see: SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition If you have tried some code which is not working then post the code and the log showing the error. Regards, Amir.
... View more