BookmarkSubscribeRSS Feed
teg_76
Calcite | Level 5

Hi,

I'm running some summary statistics in EG on a SAS dataset.  I'd like each of the groups within the dataset that are being analyzed to output to have their results output to their own SAS dataset.  Is this possible?  Any ideas on how to do this?

Thank you,

Tom

3 REPLIES 3
Reeza
Super User

I don't know if you can do that without code in EG, but can I ask why? Usually more efficient to leave in BY groups, especially if you're going to do further processing.

teg_76
Calcite | Level 5

Thanks Reeza.  I'd like to merge each of the groups back together based on an ID field, which I'm doing righ tnow in excel after exporting the results.  So I currently have summary stats outputing by multiple groups, and I'd like to bring them back together based on an id field.  I uploaded an example.  I'm basically trying to save myself time from doing all the vlookups in excel.

Tom

Reeza
Super User

Post what your input data set looks like and what you want the FINAL output to look like.

You don't have the ID field in SAS already?

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 1871 views
  • 0 likes
  • 2 in conversation