When I run this statement on a dataset, I usually get 5 columns. TableVar, TableVarLabel, NLevels, NMissLevels, NNonMissLevels ods output nlevels=nlevelsds; proc freq data=LIB.DATASET nlevels; tables _all_/noprint; run; But when I change the dataset to a different dataset, I only get 3 columns! TableVar, TableVarLabel, NLevels Why? Would this happen if my dataset had no missing values? Is there a way to force these columns to appear? The unpredictable output is really giving me problems with programming and automation.
... View more