Hi,
The answer is very simple. Use this data step below
Data new;
set old;
n=_n_;
run;
Now the new data set will contain a varible(n) which holds the number of the row.
Feel free to ask further questions.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.