permno | rtrn | HML | SMB |
123 | 0.01 | 0.02 | 1.2 |
123 | 0.014 | 1.4 | 3.5 |
123 | 0.008 | 2.1 | 0.08 |
354 | 0.023 | 3.4 | 1.69 |
354 | -0.25 | 0.006 | 2.14 |
354 | 0.14 | 1.21 | 3.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.
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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.