2I am writing an IF statement to filter out some values which are sequential. Is there a way to write an IF statement to bring out the sequential values
data H;
input HH $;
cards;
Y1
Y2
Y3
Y4
Y5
; run;
data t;
set H;
if hh in ('Y2' -'Y4');
run;