BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
BrunoSilva
Quartz | Level 8
you can use _N_ see my example:

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


i hope this help

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 577 views
  • 0 likes
  • 2 in conversation