According to the documentation, you can use the # character or the mnenomic IN. Their example is A#B C D E.
I am trying to test it with:
%macro test;
%if A#B C D E A %then %put it works;
%mend test;
%test;
Pretty straightforward as far as I can tell. Am I overlooking something obvious?