title '1.3d Data Listing with Section Heading and By Variable'; proc report data=sashelp.shoes nowindows nocenter missing headline headskip nofs list split='*'; * Where condition excludes missing region and prodv values; where region in ('Africa' 'Asia') and product in ('Boot' 'Sandal' 'Slipper'); by region; column region product subsidiary stores sales inventory returns; define region /order noprint; define product /order noprint; define subsidiary/display; define stores /sum; define sales/sum; define inventory /sum; define returns/sum; compute before product; line @10 'Product =' product $15.; line @10 75*'='; endcomp; compute after product; line @10 15*'='; line @10 'SubTotal for ' product $15. +30 stores.sum 3.; endcomp; run;