BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
davehalltwp
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

 

...dave

 

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";

 

     endcomp;

 

     run;

 

 

 

       

1 ACCEPTED SOLUTION
3 REPLIES 3
Tom
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.

davehalltwp
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.

 

...dave

 

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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