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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 831 views
  • 1 like
  • 3 in conversation