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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 4 replies
  • 469 views
  • 0 likes
  • 3 in conversation