BookmarkSubscribeRSS Feed
Bill
Quartz | Level 8
I have a pgm that outputs 4 proc tabulates into one Excel file via ods html file=xl; The beauty of it is that html outputs have no page breaks so that these 4 tables can actually be printed from excel on one page. I'd like to be able to do the same one page arrangement but produce it as a pdf file. PDF is page oriented so the job shows up as 4 pages instead of one. Is there a way to eliminate the page breaks between the proc tabulates?
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
Look at the documentation of ODS PDF option STARTPAGE:
[pre]
ods pdf file='wombat.pdf' startpage=no;
[/pre]

Also, a clarification on something you said:
4 proc tabulates into one Excel file via ods html file=xl;

When you use ODS HTML, you are NOT creating an Excel file. You are only creating an HTML file (with HTML markup tags) that Excel knows how to open and render. If you do this:
[pre]
ods html file='c:\temp\wombat.xls';
[/pre]

The file extension does not mean that you are creating an Excel file in true, proprietary Excel format. You are fooling the Windows registry into opening Excel when you double click on the icon for the above file. That's because Windows associates Excel with the file extension of .XLS -- if you did something different, call the file
[pre]
ods html file='c:\temp\wombat2.html';
[/pre]

you would launch a browser when you double-clicked on the icon for this file. However, if you open Excel and do a File--> Open from inside Excel, then Excel would open the HTML file just fine.

cynthia

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 1371 views
  • 0 likes
  • 2 in conversation