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. 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1871 views
  • 0 likes
  • 2 in conversation