I have a unique request where I am looking for a filter query like this:
to be created from the proc freq output like this:
To make it clear, lets say if I use a shortcut like Ctrl+Shift+C when selecting the row 1 (as highlighted in the above picture), I should be getting this filter query make = "Acura" and type = "SUV" in the clipboard to be pasted in the original dataset. Is this possible by recording macros in SAS EG or some other technique?
This will be very useful in the clinical datasets I am working to filter out the specific parts of large dataset.
Trying to understand your requirement.
How are you intend to use your original dataset after applying the criteria?
I mean, you can copy/paste the criteria in the data window of your original dataset.
Or paste into a code node so you get an output dataset.
If you want other not so proficient users to do this task you might want to create a stored process using prompts for this.
// you might want to create a stored process using prompts for this//
How to do this?
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.