Hello! I have a table that I have to export to excel using a proc report, where subtotals rows are computed for certain numeric columns. My problem is that in the table(so before the proc report) I also created a check variable (like if col A + col B = col C then "true" else "false") that need to be calculated only for the subtotal rows. Is ther a way to write this in a proc report
Example data.
Proc Report code.
May or may not be "easy" or possible at all depending on the above two items. Generally "possible" but might require significant modification to the data for very little.
Also you need to show an example of where your output has to go. The way proc report builds tables means sometimes it is easier to restructure the report table to get the desired affect and sometimes modify the data.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.