No it doesn't. It compares character by character. You need to convert your characters to numeric for such a comparison.
23 data _null_; 24 types='2'; 25 if types<='10' then put 'TRUE'; 26 else put 'FALSE'; 27 28 if input(types,best32.)<=10 then put 'TRUE'; 29 else put 'FALSE'; 30 31 run;
FALSE TRUE
Missed SAS Innovate in Orlando?
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.