@KevinC_: I think the problem is with the IN clause. First, you must make sure that the remote system recognizes IN - you should either use rsubmit;
options minoperator;
%macro bbb(i); or rsubmit;
%macro bbb(i)/minoperator; The first method makes In valid in all macros in the remote session, the second method makes if valid for that specific macro, only. Second, make sure that your WORD_LIST macro variable is not empty, I think that could create a message like the one you got: rsubmit;
options minoperator;
%macro bbb(i);
%if %length(&word_list) %then
%if wrd&i in(&word_list) %then %do; If that does not work, check up on the documentation for the MINOPERATOR option.
... View more