| 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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.