Hi everyone, I have an issue with a macro-variable. I have set up a macro in which I collect values of two macro variable (call symput). But when I try to write a condition on the value of one of these macro variable, I have an error message which tells me : ERROR: A character operand was found IN the %EVAL FUNCTION OR %IF condition WHERE a numeric operand IS required. The condition was: &&PARCOURS_&j.="IND" ERROR: The macro TAPIS will stop executing Here is my macro:
%macro tapis;
data _null_; set tapis;
CALL SYMPUT(COMPRESS("PARCOURS_"||_N_),PJC);
run;
data _null_; set tapis;
CALL SYMPUT("Total",_n_);
run;
data tapis2; set tapis;
%do j=1 %to &TOTAL.;
%put PARCOURS_&j. : &&PARCOURS_&j.;
%if &&PARCOURS_&j.="IND" %then %do;
%put toto;
%end;
%end;
run;
%mend;
%tapis;
Can you help me? Thank you in advance
... View more