Hallo good people, I need help again; I have now used too much time to try to find out how to do this. Please help! As new in SAS, I cant find the answer myself. I have pnr and col1 and want to make Count or count1 or something similar. In col1 there are +7 between dates (DDMMYY10.) that I want to count. Then the date change with more (or less then + 7) I would like to make a new count until there again are more or less then + 7 between the two dates. pnr Col1 count Count1 123 30/12/2013 1 123 06/01/2014 2 2 158 14/03/2011 1 158 21/03/2011 2 158 28/03/2011 3 158 04/04/2011 4 158 11/04/2011 5 158 18/04/2011 6 6 234 24/09/2007 1 234 01/10/2007 2 234 08/10/2007 3 234 15/10/2007 4 4 234 08/12/2014 1 1 Is this possible? Count could also look like Count1 or another way that will show the count with the different pnr. Pnr are characters, col1 are numbers.and I use SAS 9.4 Thank you so much and please ask if you need more information 🙂 Rebekka
... View more