The SAS Output Delivery System and reporting techniques

How to print the observation no in to seperate data set

Reply
N/A
Posts: 0

How to print the observation no in to seperate data set

hi ,
my data like this...
name rno marks
aaa 1 23
bbb 2 34

but i want out put like this
obsno name rno marks
1 aaa 1 23
2 bbb 2 34


thanks
sree
Contributor
Posts: 50

Re: How to print the observation no in to seperate data set

Posted in reply to deleted_user
you can use _N_ see my example:

data work.teste;
format obsno 8.;
set sashelp.class;
obsno=_N_;
run;


i hope this help
Ask a Question
Discussion stats
  • 1 reply
  • 110 views
  • 0 likes
  • 2 in conversation