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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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