Hi SASAna,
The below program looks for the values 1234,2345,4567,8903 in the column Code. The first Data Step creates the test data set.
Let me know if I have misunderstood your question.
Thanks
Mary
data new; input code $; datalines; 1234 2345 4567 5464 8903 2090 1234 1234 ; run; %let procs=1234,2345,4567,8903;
data find; set new; do i= 1 to 4; if code=trim(scan("&procs",i,',')) then output; end; run;
... View more