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

Repeat a Table for a Series of Class Variables

Have you ever produced a great table for your boss, only to hear: "That is just what I wanted, but could I see the same table for x, y, and z as well?" This is easy to do if you turn your table into a macro and run it over and over again with the new variables. This example shows how to run the same table again using different class variables.
  1. First, we will build our basic table. This is a cross–tabulation of data from an employer survey that shows the companies’ mean number of employees broken down by full-time versus part-time status. The data is also categorized into rows by whether the companies are in the public or private sector. The original code is as follows:
    TITLE "Original Table ...
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