I have a a table called Tabling.
Name Number
Price A 10
Price B 11
Quantity A 12
Quantity B 13
How do I write a Proc SQL piece of Code where I create a variable Saying %let Variable = "Price"
and then say something like this
I am creating a table called selection from Tabling
Proc SQL;
Create Table Selection As
Select *
From Tabling
Where Name Contains %Variable;
Quit;
What I need is for the Proc SQL to relate back to the macro variable without explicitly stating "Price" in the SQL Code.
Please help me with this. Thank you in advance.