Specify the table options. CLASSDATA= and EXCLUSIVE restrict the class level combinations to those that are specified in the CLASSES data set.


proc tabulate data=energy format=dollar12. 
              classdata=classes exclusive;