Create Ouput Data Sets
You can easily create
output data sets from your PROC TABULATE table. The good news is that
they are easy to specify. The bad news is that these data sets can
be a little tricky to understand. PROC TABULATE tables can be quite
complex, and these complexities are difficult to represent in a simple
data set. The following code illustrates a simple PROC TABULATE table
with an output data set:
PROC TABULATE DATA=TEMP OUT=TABOUT;
CLASS GENDER;
VAR INCOME;
TABLE GENDER=' ' ALL,
INCOME*(N*F=8. MEAN*F=DOLLAR8. MEDIAN*F=DOLLAR8.);
RUN;
Output 19.5 shows
the resulting table. As you can see, specifying the OUT= option has
no effect on the table.
Output 19.5 PROC TABULATE Output Table
You can then print the new output data ...
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.