Hi:
Also, the syntax for creating an output data set from Proc Freq is wrong. To create an output dataset use one of these 2 methods (not both):
1) use Proc FREQ syntax
2) use ODS syntax.
If you use ODS syntax, then the ODS output statement must PRECEDE the Proc Freq -and- you must have the right output object <object> for the procedure:
[pre]
ods trace on / label;
ods output <object> = dataset;
proc freq data=mydata;
table char3;
run;
ods trace off;
[/pre]
The documentation can show you the right syntax for the PROC FREQ method and the ODS TRACE and the ODS documentation can show you the correct syntax for the ODS method. The ODS TRACE will give you the name of the correct output object. As far as I know, "TABLE=TEST3" should fail because "TABLE" is not the correct output object name created by PROC FREQ.
cynthia