Again, this is SOOO helpful. Especially clarifying the process. It still has errors, but they pertain to "k", and I cannot figure out why that is. You even defined k as being local to the macro & yet this is the error. If you can think of why it seems to not be accepting the %do portion than that would be awesome! But, you've already been a tremendous help 🙂 31 proc freq data=&dsn; where &factor1 in (k, l);
-
22
76
ERROR: Syntax error while parsing WHERE clause.
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
a datetime constant, a missing value, -.
... View more