Sorry guys, but I am missing something here and I want to understand it, look like still you are not happy with the missing values in the result. 1. Your code in sql works....as I am considering that missing points in the result as valid. but, you said: " I don't think your code works the way that OP wanted."...please can you explain me what does OP mean? Then, you write two codes: 2. a)your first code ( not using sql )...works well, obtaining the same result as using sql. 2. b) The (code using Hash)...Thnaks Hai.Kuo, but I dont control this type of object programming (Is good to know in the future). What are the next message talking about? Look like (please, correct me if i am wrong ) there is a problem with the missing value, that you guys (Hai.kuo, mkeintz, Astounding) want to solved....but I still dont understand. Btw, the code of mkeintz looks interesting too, but the function coalesce is not recognize in SAS 9.0. Any suggestion? 4. Still dont understand what Astounding want to show I hope someone can explain me why you are not happy with the first code of Hai.Kuo, when I was happy with the result
... View more