BookmarkSubscribeRSS Feed
ykk
Obsidian | Level 7 ykk
Obsidian | Level 7

Hi Team

 

I have a requirement where I need to copy the Filters that are used in a query builder to a variable in a data set.

 

Thanks

Kiran

5 REPLIES 5
Reeza
Super User
The filters are likely stored as macro variables, so you need to determine the macro variable names required and you can store them in data set.
ykk
Obsidian | Level 7 ykk
Obsidian | Level 7

Thanks for the reply.

 

My query builder contains a mix of Prompts and Static Filters that were added.I could not find any macro variable for the filters.Does it require any settings change to my EG.I had used %put _ALL_ to list down all the macro variables.

Reeza
Super User
I think they're called Parameters in EG, you don't see a parameter for each filter?
ykk
Obsidian | Level 7 ykk
Obsidian | Level 7

I am not using prompts in the Filter.I have a Filter which says EMP_ID IN (123,456) and DEPT_ID =20.  I all those filters to be extracted.

 

 

Reeza
Super User

Those are hardcoded then. I don't think they're included anywhere so you'll have to hardcode them into your output file. 

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