First of all, thank you Art for your response to this problem, to answer your questions regarding customer 48 yes you are right, I have not sort the data and 120 days you suggested is fine too. However when I attempted to apply the correct for missing data and expand file data step, the data set have blown out to an unimaginable size which even SAS cannot open the table for me to see what is happening with the intermediate step, and the final data step only have 1 switch per customer and not the multiple product switches for customers who have many products holding over the years and have been actively switching e.g. customer 90, I hope I have enough examples in the spreadsheet attachment to show what I mean. Best Regards, Peter
... View more