Skip to Main Content
PROC TABULATE by Example, Second Edition
book

PROC TABULATE by Example, Second Edition

by Lauren Haworth Lake, Julie McKnight
May 2015
Intermediate to advanced content levelIntermediate to advanced
348 pages
11h 31m
English
SAS Institute
Content preview from PROC TABULATE by Example, Second Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS 9.4 Language Reference, 6th Edition

SAS 9.4 Language Reference, 6th Edition

SAS Institute

Publisher Resources

ISBN: 9781607649908