BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
HarryB
Obsidian | Level 7

Hi,

 

I have multiple proc procedures that produce just a table. I am trying to fit as many proc outputs as it can fit into one page instead of one table per page, just to save trees! could you please help me with that? 

My code structure is following.

 

ods pdf file =” “ startpage=No;

Proc 1

title 1

Proc 2

title 2

Proc 3

title 3

Proc 4

title 4

.

.

.

ods pdf close;

 

My code partially achieves what I wanted to do; however, only one title (title 1) prints on one page, instead title for each table.

Capture.PNG

Thanks for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Each of the ODS destinations treats Title statements a bit differently. In the case of PDF it behaves as you have seen. You can work around this by using something like ODS TEXT instead of titles.

Or move to ODS RTF where there is an option BODYTITLE to place titles into the body of the document and not just the default header position.

View solution in original post

2 REPLIES 2
ballardw
Super User

Each of the ODS destinations treats Title statements a bit differently. In the case of PDF it behaves as you have seen. You can work around this by using something like ODS TEXT instead of titles.

Or move to ODS RTF where there is an option BODYTITLE to place titles into the body of the document and not just the default header position.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 788 views
  • 0 likes
  • 2 in conversation