BookmarkSubscribeRSS Feed
sas_p
Fluorite | Level 6

I have a dataset as follows:

 ABCDEFG 
DAY1123.... 
DAY2...4567 
 The result I want is as follows:        
 ABCDEFG 
 1234567 

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:

 

ABCDEFG
123....

Please help

Thanks!

2 REPLIES 2
Reeza
Super User

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. 

Ksharp
Super User

proc summary data=sashelp.class;
var _numeric_;
output out=want(drop=_:) sum=;
run;


hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1208 views
  • 2 likes
  • 3 in conversation