Skip to Content
Carpenter's Complete Guide to the SAS REPORT Procedure
book

Carpenter's Complete Guide to the SAS REPORT Procedure

by Art Carpenter
February 2013
Intermediate to advanced
490 pages
14h 35m
English
SAS Institute
Content preview from Carpenter's Complete Guide to the SAS REPORT Procedure
Chapter 7: Extending Compute Blocks 171
Extending Compute Blocks
Using COMPUTE to Supply Summary Text
Years of
Region Education Height Weight
Mid West 14.31 66.85 172.54
No. East 13.25 67.33 138.17
So. East 15.00 69.00 159.14
Western 12.63 67.25 182.00
========== ========= ====== ======
Co 13.78 67.45 161.78
Notice that only the first two letters of the word ‘Combined’ are displayed. This is because
REGION is a $2 variable, and although a width of 10 has been specified, only the first two letters
will fit into the variable. This problem is addressed in Section 7.4.2.
A problem can also occur if you try to assign a value of the wrong ...
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

Carpenter's Guide to Innovative SAS Techniques

Carpenter's Guide to Innovative SAS Techniques

Art Carpenter
SAS ODS Graphics Designer by Example

SAS ODS Graphics Designer by Example

Sanjay Matange, Jeanette Bottitta

Publisher Resources

ISBN: 9781599944272