I have a dataset as follows:
| A | B | C | D | E | F | G | ||
| DAY1 | 1 | 2 | 3 | . | . | . | . | |
| DAY2 | . | . | . | 4 | 5 | 6 | 7 | |
| The result I want is as follows: | ||||||||
| A | B | C | D | E | F | G | ||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
It's a very last dataset with 1300 variables
i tried to make two subset data sets with DAY1 AND DAY2 and merged then back. But the result I get is as follows:
| A | B | C | D | E | F | G |
| 1 | 2 | 3 | . | . | . | . |
Please help
Thanks!
This is typically resolved with an UPDATE statement with your by variables. But you haven't specified your key variables.
You can look into the update statement or provide more information if you need more help.
proc summary data=sashelp.class; var _numeric_; output out=want(drop=_:) sum=; 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.