BookmarkSubscribeRSS Feed
KMoran
Calcite | Level 5

I have a dataset in EG that I would like to query by and Id variable.  I know that I can create separate query builders for each variable to get a dataset for each variable.  However, there are 20 different variables.  Is there are way to do this in one query with multiple dataset outputs by the id variable?  I do not want to have to select with prompts.  Thanks!

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

I think that you would have to write DATA step code to do that in one pass of the data.

KMoran
Calcite | Level 5

That's what I thought.  Thanks so much!

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