Hi,
I'm building a task where I want to create a where clause based on a data and variable selection (I've re-used the Filter Data supplied task). I want to create an IN clause but there seems to be no way of doing it.
I can fill a DISTINCT object with the variable values but this only allows one value to be selected. A COMBOBOX is also out of the question as this is also a single selection object.
Has anyone managed to fill a SELECT object with the variable values? I've only managed to get it to add in the variable name when I want to get the list of distinct values from that variable name.
Anyone got any ideas?
Cheers,
Lawrence
I'm not sure that you can do this either unless @ChrisHemedinger or @OliviaWright know a way.
However you can do this already with the supplied Query Utility so you may not need a Custom task after all...
Hi Chris,
Thanks for the reply. I'll have a look at the Query Utility but I actually need this as part of a larger custom task. So the selection of a where clause is one part of the whole custom task. Unless there's a way of calling existing tasks from within a custom task (analogous to a macro).
Cheers,
Lawrence
The feature that you are looking for in an object to construct a custom task is currently not available in SAS Studio. We will consider adding this feature in a future release. Thank you for your feedback.
With regarding to your other question, you cannot call an existing task from a custom task. However, you can run an existing task and a custom task together using a Process Flow in SAS Studio.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.