ID | Code1 | Code2 | Code3 | Code4 | Code5 | Code6 | Code7 | Code8 |
---|---|---|---|---|---|---|---|---|
1 | 64721 | |||||||
2 | 36860 | 35465 | ||||||
3 | 45565 | |||||||
4 | 12545 | 45665 | 25785 | |||||
5 | 12546 | 12562 | 15485 | 84556 | 24566 | 58585 | 32656 | |
6 | 54545 | 14652 |
Save the sheet as csv;
data want;
infile "where you saved the csv" delimiter=',' missover;
input id code1-code8 ;
run;
That was easy. Thanks very much.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.