Hi: I'm still now clear on what XXX represents? If you mean page number, I think that can only be used in the TITLE and FOOTNOTE statements. Your output is using LISTING only options like HEADLINE, HEADSKIP, WIDTH= and SPACING= that are only used by the LISTING or OUTPUT destination. What is confusing is that the N=XXX doesn't make sense to me because if page 1 will have N=10 and page 2 will have N=11 how do you know that page 2 will be 11? Will page 3 be 12 and page 4 have a value of 14 for XXX? Can you clarify exactly what your data looks like by providing a sample dataset. Can you also clarify what the output destination should be? Are you only creating output for the LISTING window or do you envision creating RTF, PDF, HTML or Excel output? If you are trying to create any ODS output then some of your options will not work. The other issue I see is that the column header typically doesn't change from page to page. So once you have your N=XXX on page 1, the usual behavior of PROC REPORT would be to repeat the SAME value for the header on every page. in a compute before or compute after block, you could use a macro variable to change text that you would write with a LINE statement. However, the column headers for each variable would typically NOT change because they can't be touched by the COMPUTE BEFORE or COMPUTE AFTER code.
Cynthia
... View more