I want to add a rownumber to a table. In sql you can do a partition by to add a rownumber and start counting the rownumber on several BY variables. I have found this code: Data myTable; Set myTable; By Var1; if first. Var1 then n=1; else n+1; run; How can I add a rownumber using more than 1 variable?
... View more