BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Quartz | Level 8

Anybody know an easy (quick) way to suppress footnotes in PROC REPORT after the first page?  I guess I would still want the line at the bottom of the data on all pages, but footnotes only on page 1.


I am currently using a COMPUTE AFTER _PAGE_ block to display footnotes.  Until now, I wanted all footnotes on every page.


Below is a simplification of my code.  I know that PAGNUM is incrementing starting with 1, but I still get all footnotes on every page.  Is there a trick to a conditional statement within one of these COMPUTE blocks?


Thank you




proc report data = prtdata;




     compute after _PAGE_;

          pagnum + 1;


          line @1  "--------------------------";

          if pagnum = 1 then line @1  "footnote 1 text";

          if pagnum = 1 then line @1  "footnote 2 text";

          if pagnum = 1 then line @1 "footnote 3 text";









Super User Tom
Super User

I seem to remember that you need to make the text to be printed conditional instead of trying to make the LINE statement itself conditional.

Quartz | Level 8

Thank  you, Tom SuperU.  I think I know how to do that, but then the footnotes will still take up the same amount of space.  The customer simply wants more data per page, so doesn't want any footnotes beyond page 1, blank or not.


Of course, I don't even know if that would be effective.  REPORT might put the same number of rows on a page whether I am adding footnotes in a COMPUTE block or not.  


Thank you, I much appreciate your reply.





Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1 like
  • 3 in conversation