Hello I have a question. In my code I had a WHERE clause with IN operator and dozens of string values written inside the brackets. It wasn't very pleasant to look at, so I thought that it would be better to put these values inside a single variable and make the IN operator read them. My mainly idea was to use proc sql: Proc sql; select DISTINCT 'TABLE'n into :varlist separated by '", "' from USERSPDS.TABLE1; quit; %let varlist = &varlist; Proc sql; select DISTINCT 'LIBREF'n into :var2list separated by '", "' from USERSPDS.TABLE1; quit; %let var2list = &var2list; It seemed to work fine and values I wanted to put inside these two variables are actually inside but I have problem: where n1.name IN ("&varlist") and n1.libname IN ("&var2list"); <---- I thought that would work but I get an "error": Val1", "Val2", "Val3", "Val4", "Val5", "Val6", "Val7", "Val8", "Val9", "Val10 ____ ____ ____ ____ ____ ____ ____ ____ ____ 49 49 49 49 49 49 49 49 49 NOTE 49-169: The meaning of an identifier after a quoted string may change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended. That error is actually a NOTE but it stops my process.. Any idea how should I insert that white space? Thanks in advance!
... View more