01-20-2015 06:07 PM
One caution using this coding involve less than and missing. If you have a missing value it is always less than anything else. So if you do not want to assign or recode if the value is actually missing you need to include that condition:
If var ne . then var= (var<10);
Need further help from the community? Please ask a new question.