Online File

How to use this page


Rick Aster: Professional SAS Programming Shortcuts: Contents

Chapter 49
Program
Percent of BY group total


proc summary data=work.funds;
   by fund;
   var value;
   output sum=fundtotal out=work.totals;
run;
data work.balance;
   merge work.funds work.totals (keep=fund fundtotal);
   by fund;
   share = value/fundtotal*100;
run;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Shortcuts

Contents/Online Files

Corrections

Catalog Page