data have;
input ID Sample $;
cards;
1 00012
2 00034
3 00032
4 00124
5 00432
;
run;
data want;
set have;
where reverse(strip(Sample)) NOT =: '4';
run;
/* end of program */
If the variable in numeric, you would use the MOD function
if mod(sample,10)=4 then delete;
-- Paige Miller
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!