This is the log: 660 options mprint; 661 %macro one(x) (where=(wrat_raw not in (888 999))); ERROR: Expected semicolon not found. The macro will not be compiled. ERROR: A dummy macro will be compiled. 662 proc means n mean std median min max maxdec=1; 663 var &x; 664 class site_id Phase visit_id; 665 run; 666 %mend one; 667 %one (wrat_raw); NOTE: Line generated by the invoked macro "ONE". 1 proc means (where=(wrat_raw not in (888 999))) n mean std median min max maxdec=1; - 22 76 MPRINT(ONE): proc means (where=(wrat_raw not in (888 999))) n mean std median min max maxdec=1; MPRINT(ONE): var wrat_raw; ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. MPRINT(ONE): class site_id Phase visit_id; ERROR: No data set open to look up variables. MPRINT(ONE): run; ERROR 22-322: Syntax error, expecting one of the following: ;, ALPHA, CHARTYPE, CLASSDATA, CLM, COMPLETETYPES, CSS, CV, DATA, DESCEND, DESCENDING, DESCENDTYPES, EXCLNPWGT, EXCLNPWGTS, EXCLUSIVE, FW, IDMIN, KURTOSIS, LCLM, MAX, MAXDEC, MEAN, MEDIAN, MIN, MISSING, MODE, N, NDEC, NMISS, NOLABELS, NONOBS, NOPRINT, NOTHREADS, NOTRAP, NWAY, ORDER, P1, P10, P20, P25, P30, P40, P5, P50, P60, P70, P75, P80, P90, P95, P99, PCTLDEF, PRINT, PRINTALL, PRINTALLTYPES, PRINTIDS, PRINTIDVARS, PROBT, Q1, Q3, QMARKERS, QMETHOD, QNTLDEF, QRANGE, RANGE, SKEWNESS, STACKODS, STACKODSOUTPUT, STDDEV, STDERR, SUM, SUMSIZE, SUMWGT, T, THREADS, UCLM, USS, VAR, VARDEF. ERROR 76-322: Syntax error, statement will be ignored.
... View more