Incorrect header labels are displayed in the SURVEYFREQ procedure


If you request multiple tables in PROC SURVEYFREQ with the DOMAIN= option, the procedure can incorrectly retain the header labels associated with the first table request.

Here is an example:

tables (a b)*c/domain=row;

For the second set of tables (b*c), the "Controlling for b" header label can incorrectly include the levels from a.

Workaround

To circumvent this issue, when you use the DOMAIN= option, request only one table in each PROC SURVEYFREQ step, as shown in the following example:

proc surveyfreq data=have;
tables a*c/domain=row;
run;


proc surveyfreq data=have;
tables b*c/domain=row;
run;

A fix for this issue is planned for a future software release.