BookmarkSubscribeRSS Feed
abdulla
Pyrite | Level 9
permnortrnHMLSMB
1230.010.021.2
1230.0141.43.5
1230.0082.10.08
3540.0233.41.69
354-0.250.0062.14
3540.141.213.54

 

Hi, 

I want to copy the exact similar data to the cells below. I have 1773 observations. So I have to copy the above data to 1173 obs below. It is now 6 obs. So I need to copy down the same for 1771 obs. Please help. 

4 REPLIES 4
Reeza
Super User
FYI - I've moved both your recent posts to the programming forum, rather than 'community matters'.
abdulla
Pyrite | Level 9
Ok. Thank you. So, I have to post this in the programming forum, right?
Reeza
Super User
Yes, the community matters forum is for issues relating to the community/forum itself, rather than programming issues. This appears to be a programming question.
andreas_lds
Jade | Level 19

Can you post what you expect as result using the data you posted?

 

If you want to duplicate the whole dataset you can try:

 

/* create a backup, so that the original dataset is not overwritten by proc append */
data work.class;
   set sashelp.class;
run;

proc append base=work.class new=work.class;
run;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 633 views
  • 0 likes
  • 3 in conversation