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?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.