Greetings colleagues, I need help with a feature that I want to implement but, so far, it has been difficult. Imagine if you want to view data from a dataset based on some criteria, for example: inlist (variable_a, "yes", "maybe"). but what I want is to be able to use the symbol * inside it in order to be able to apply the function to a group of variables for example: inlist (variable _ *, "yes", "maybe"). but, unfortunately the inlist function does not allow it because it returns an error. is there another function that allows me to do this?

I would appreciate the help. Thanks.