Blank Label Is Not Being Applied to a Variable

Just as there is more than one way to apply a format in PROC TABULATE, there is also more than one way to apply a label. You can label variables in the TABLE statement using the VARNAME=‘ ’ syntax, or you can label variables using a LABEL statement. Similarly, you can label statistics in the TABLE statement or with a KEYLABEL statement.
Generally, these two approaches are interchangeable, but there is one exception. Consider the following example, which uses LABEL and KEYLABEL statements to apply labels to the variables in the TABLE statement:
PROC TABULATE DATA=TEMP F=13.1; CLASS MARITAL AGE; VAR NUMKIDS; TABLE AGE, NUMKIDS*MARITAL*MEAN; LABEL AGE='Age Group' NUMKIDS='Number of Children' MARITAL=' ...

Get PROC TABULATE by Example, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.