ODS trace on;
proc freq data = data;
tables hypreldeathind*statecd / norow nopercent nocum missing chisq;
run;
ods trace off;
Ods output crosstabfreqs = want (keep = StateCd HypRelDeathInd Frequency ColPercent
where = (StateCd IN ('IA' 'MS' 'UT') and HypRelDeathInd = 1 and Missing(StateCd = 0)))
chisq = hyprslt.chisqresults (drop = Table Where = (statistic = 'Chi Square')) ;
Proc Print data=data;
run;
Proc contents data = data;
run;
Proc print data=data;
run; I'm receiving errors that the data tables do not exist. It looks like I'm creating them correctly in ODS output though. This may be related to warning messages received in log -- WARNING: Output 'chisq' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify
that the appropriate procedure options are used to produce the requested output object. For example, verify that the
NOPRINT option is not used.
WARNING: Output 'crosstabfreqs' was not created. Make sure that the output object name, label, or path is spelled correctly.
Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify
that the NOPRINT option is not used. Any ideas?
... View more