Hi: The purpose of %put is to write to the SAS log file. Since PROC REPORT is writing to the RTF destination, your %PUT text will never be visible in the RTF file. So I'm not entirely sure what you want to do or where you want your sales figures to be written. The LINE statement is how you write text lines from PROC REPORT. The LINE statement ALWAYS writes output within the boundaries of the PROC REPORT table. So if your PROC REPORT output has borders on the left and right side of the report, the LINE(s) will ALWAYS be written within these boundaries. The other limitation of the LINE statement is that it can ONLY be used in a COMPUTE block that is associated with a break point for an order or group item or associated with the top or bottom of the report (COMPUTE BEFORE, COMPUTE AFTER, COMPUTE BEFORE _PAGE_, COMPUTE AFTER _PAGE_). So if you changed your %PUT to a LINE statement, it would NOT work. The ODS TEXT statement is how you write a text string either before or after a procedure, where the line of text is OUTSIDE the boundaries of the report. So that may be a possibility. In addition, you have 3 macro variables, &sales, &sales1 and &tsales1, but you only show a %LET that creates &sales. So the other values are not going to be found. Cynthia
... View more