Dear Everyone, My sincere apology that I couldn't get back last night. To Art, I tested the yrdif (as well as dtdif) using methods/instructions from SAS Helps, unfortunately I had a message from log file: character values have been converted to numeric values at the places given by ... I am not sure what is wrong with the code. Greatly, I used the approximate formula (doc@duke), it appears to be fine for my results. As Reeze's comment, however, I need to develop several step fro proc summary, proc freq and proc mean to calculate 'sum' of variable that I need. Overall, I think to calculate person-year is required several steps. These steps are very helpful for new SAS users like me. One thing that I have no idea for Art is the code does not work. If possible, I will see a stat person in my place if he can help me to identify the erros. At the meantime, I much appreciate and want to thank everyone in helping me this procedure. Again thanks. Phan S. .
... View more