if _break_ = ' ' and year ne . then yeartxt = put(year,4.);
else if _break_ = ' ' and year = . then yeartxt = ' ';
else if _break_='_RBREAK_' then yeartxt = 'Overall';
else yeartxt = 'Total';
endcomp;
compute after;
line ' ';
line @5 'Total Profits in US dollars was ' profit.sum dollar14.2;
endcomp;
run;
The last few lines of the report show ...
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.