Create first a custom format using the multilabel option, for example proc format library=work;
value foodf (multilabel notsorted)
low-2=1
3-5=2
6-7=3
3-7=4
8-high=5;
run; Now how you would use it depends on the which PROC you will use it for. For further details check out: https://blogs.sas.com/content/sgf/2016/12/16/creating-and-using-multilabel-formats/
... View more