The IF and ELSE statements create the HLO variable. The IF statement executes only if the DATA step is writing the last observation. HLO receives a value of h for the last observation in the data set. The value h indicates that the ending value of the range is HIGH. HLO has missing values for all other observations.
   if last then hlo='h';
   else hlo=' ';
run;