I copied this code of a practice question, the question is that value will be assigned to 10, which is seemingly between the "warm" and "hot" temperature ranges.
proc format lib=sasuser;
value tempc low< 0 = 'BELOW FREEZING'
0 < 5 = 'COLD'
5 < 10 = 'MILD'
10 < 15 = 'WARM'
15 < high = 'HOT';
run;
Intuitively, it seems that 10 is assigned no format and should be presented just as 10. But not only does the key claim 10 will be presented as "WARM", the code refuses to run on my system!
SAS tells me the "<" signts is not recognized and will be ignored(!).
So:
Question 1:
Why on earth would 10 be presented as 'WARM' and not as 10, is this another typo?
Question 2:
Why does the code fail to run? I double checked with the advanced programmer's prep guide and this seems to be the way to assign a format to an interval....
asdf