What’s New in PROC FREQ Procedure, Version 9.
21. July 2007 06:24-
NLEVELS
Some times you might be interested to know the number of levels for all character variables or all numeric variables in that data set with out printing there frequency table.
PROC FREQ DATA=SASHELP.CLASS NLEVELS; TABLES _CHAR_ / NOPRINT; RUN;
Similarly you can use TABLES _ NUMERIC _ / NOPRINT; or TABLES VAR1--VAR2 / NOPRINT; -
CONTENTS:
CONTENTS=link-text: Used in TABLES statement to specify the meaningful text(on the hyper link) for the HTML contents file that links to crosstabulation tables. The CONTENTS= option affects only the HTML contents file, and not the HTML body file. If you omit this option, by default, the HTML link text for crosstabulation tables is “Cross-Tabular Freq Table”. This option is useful to specify the different text for different crosstabulationtable links.
Example:ODS HTML BODY = "DATA.HTM" CONTENTS = "TOC.HTM" FRAME = "FRAME.HTM" PATH= "Path name" STYLE=DEFAULT; PROC FREQ DATA=SASHELP.CLASS; TABLES SEX * AGE / CONTENTS= "First freq table for Sex vs Age"; TABLES SEX * WEIGHT / CONTENTS = "Second freq table for Sex vs WEIGHT"; FORMAT WEIGHT PHYSIC.; RUN; ODS HTML CLOSE;
- CROSSLIST:
- NOSPARSE:
CROSSLIST: Used in TABLES statement to display the crosstabulation tables in column format instead of the default crosstabulation cell format. You cannot specify both the LIST option and the CROSSLIST option in the same TABLES statement.
Example:
PROC FREQ DATA=SASHELP.CLASS; TABLES SEX * AGE / CROSSLIST; RUN;
Example:
PROC FREQ DATA=SASHELP.CLASS; TABLES SEX * AGE / CROSSLIST NOSPARSE; RUN;

Email 