proc format;
value dollarf inv 0<100000 ='Under $100k'
100000-<150000 ='$100k-$150k' 150000-high = 'More than $150k';
value sales 0-100000 ='Under $100k'
100000-<150000 ='$100k-$150k' 150000-high = 'More than $150k';
run;
In PROC FORMAT, you specify ranges differently than you would in an IF statement. You specify the low value of the range, a dash and then the high value of the range.
Could it be because they are numerical variables and I want to make them show character values?
Not a problem, that's one of the huge benefits of PROC FORMAT is that numerical value ranges can be represented as a text string.
--
Paige Miller