Using the macro I posted: %put %CatPrompt(Prompt_MultUsrSlct); The results in the log are: 'a','b','c' so it looks like the macro is ok. am i right? but the proc sql makes an error. here is the log (i simplified the where clause): 36 PROC SQL; 37 CREATE TABLE WORK.Tbl2 AS 38 SELECT * 39 FROM WORK.Tbl1 40 WHERE myFld1 IN (%CatPrompt(Prompt_MultUsrSlct)) NOTE: Line generated by the macro variable "EMIT". 40 'a','b','c' _ 22 _ 76 ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant, a datetime constant, a missing value, (, -, SELECT. ERROR 76-322: Syntax error, statement will be ignored. 41 ; NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements. 42 QUIT;
... View more