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?

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

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
  • 1978 views
  • 0 likes
  • 2 in conversation