Could someone help me how I can get a macro variable updated with single quotes.
I am getting numbers as comma separated values from a Dataset like below:
2108008080, 2108008081, 2108888082, 2108858090, 213856345 etc I have to pass each of these records in a SQL where condition as Phone_numbers in (¤t_macro_variable). To do this I have to add single quotes around each value as the Phone_numbers columns is a character field of Oracle DB.
Any help is highly appreciated. I could not get much help from SAS communities.
%let macroQuoted = "%sysfunc(tranwrd(%str(¯oVar),%str(, ),%str(", ")))";
– Dirk Horsten