BookmarkSubscribeRSS Feed
Inp
Obsidian | Level 7 Inp
Obsidian | Level 7

Dear,

 

Attached here my coding . I wanted to write the summary information at the very last page. I already find the very large page number  in advance, but when I add the summary ,  it populate additional page and summary is being written on the page before the last page and the last page. Also part of the report is also written on the last page as well where it suppose to write on the page before last page.

 

Your help is much appreciated in advance.

 

 

Thanks

 

Anton R

 

 

3 REPLIES 3
ballardw
Super User

Are you trying to force something to be part of a result table or do you just want a summary after the existing report?

It would like be much easier to just have separate procedure call to do an overall summary afterward.

Inp
Obsidian | Level 7 Inp
Obsidian | Level 7

Hi  

 

I want to write the summary is part of the table. Actually I want to write the summary at the end of the detail lines.  I don't want to write the summary on separate page.

 

 

Thanks

 

Anton

Cynthia_sas
SAS Super FREQ

Hi:

  It seems to me that you want something like this:

sep_grand_total_output.png

 

which was done with 2 PROC REPORT steps. The first PROC REPORT did the tables using PAGE for Canada and Pacific and the second PROC REPORT just did the Grand Total line.

 

Using this code:

sep_grand_total_code.png

I think that this might be easier code to maintain because when I looked at your code, it seemed to me that you can probably get 25 obs on every page except for the last page because you've increased the font size for those last lines. So if you had a small number of rows on the last page, then the calculated pagex might be correct and there would be enough room on the page for everything. But if the last page does have close to 25 rows, then I believe the pagex you calculate can be "off" from what PROC REPORT actually produces when it's putting report rows into the PDF file.

 

  Hope this helps,

Cynthia

 

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
  • 1150 views
  • 0 likes
  • 3 in conversation