Under proc freq , no VAR syntax
Should be :
proc freq data=test;
table XXX/nocum ;
run;
Syntax
The following statements are available in PROC FREQ.
- PROC FREQ < options > ;
- BY variables ;
- EXACT statistic-options < / computation-options > ;
- OUTPUT < OUT=SAS-data-set > options ;
- TABLES requests < / options > ;
- TEST options ;
- WEIGHT variable < / option > ;
The PROC FREQ statement is the only required statement for the FREQ procedure. If you specify the following statements, PROC FREQ produces a one-way frequency table for each variable in the most recently created data set.
proc freq; run;
The rest of this section gives detailed syntax information for the BY, EXACT, OUTPUT, TABLES, TEST, and WEIGHT statements in alphabetical order after the description of the PROC FREQ statement. Table 29.3 summarizes the basic functions of each statement.
Table 29.3: Summary of PROC FREQ Statements
| Statement | Description |
| BY | calculates separate frequency or crosstabulation tables for each BY group. |
| EXACT | requests exact tests for specified statistics. |
| OUTPUT | creates an output data set that contains specified statistics. |
| TABLES | specifies frequency or crosstabulation tables and requests tests and measures of association. |
| TEST | requests asymptotic tests for measures of association and agreement. |
| WEIGHT | identifies a variable with values that weight each observation. |