In reply to kc.

When you say "output option is not working," I assume that you mean the OUT= option on the TABLES statement does not write all the tables. Yes, that is why I switched to the PROC IML solution. To get the output from PROC FREQ into a SAS data set requires using multiple TABLES statements, which is what the KnowledgeBase article shows how to do. The link is in the first sentence of the article.