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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.