I am retrieving a few records from PROC SQL using a where clause like this:
where mailing_phone_numbers in (%bquote(&phone_numbers.));
But the macro variable phone_numbers does not have a initial "'" single quotation mark and it is creating problem.
How could I append a single quote before (%bquote(&phone_numbers.), so that the query does not fail?
Macro variable holds values like this: 2101172076', '2101172077', '2101172078', '2101172079', '2101172080', '2101172081' First single quote is missing in the data. As I am reading it from a csv file.