In my opinion, a superior method to handling this is custom formats.
 
proc format;
    value agef
         0-10='Years 0-10'
         11-20='Years 11-20'
         21-30='Years 21-30';
run;
 
And then assign the format to the variable in a DATA step or PROC.
 
format age agef.;
 
 
As a style issue, when you do this replacement of a numeric variable with text, using either your method or my method, make it look like proper English (or whatever language you are using), as I have done with Years 0-10 instead of years0-10 as you have done. Or even better, remove the Years from the value since everyone understands that a variable named age implies you are using years.
					
				
			
			
				
	--
Paige Miller