Hi, I need to populate a count_var variable in my dataset based on the value of Order Id, Dataset format is as follows: Order ID Count_var 000123 1 000123 2 000123 3 000125 1 000125 2 000130 1 Here Count_var variable is something that I want to auto-populate in SAS, which should start the counting from 1 when the value of Order ID changes. Please help me with the code. Regards, Rohit
... View more