The SAS Output Delivery System and reporting techniques

formatting of output changes from proc print to ODS PDF

Reply
New Contributor
Posts: 3

formatting of output changes from proc print to ODS PDF

Hi there,

 

I was wondering if anyone here has had a similar experience with writing proc print output to ODS.

 

The output for proc print looks something like that

 

1.jpg

 

While the output from ODS looks something like this

2.jpg

Could someone advise me on how I can get the otuput in ODS to maintain the same?

 

Thanks!

Grand Advisor
Posts: 17,336

Re: formatting of output changes from proc print to ODS PDF

Can you explain a bit more please? Include your code perhaps? 

 

Are you referring to the HTML vs PDF, both of which are ODS outputs, being different? 

 

If so, that's likely as the dimensions of the 'page' are different. HTML has no width or length restrictions whereas PDF is usually letter size pages. To fix or adjust this make sure your using the same style on both and try modify the font size or change the page orientation for PDF. 

Esteemed Advisor
Esteemed Advisor
Posts: 7,203

Re: formatting of output changes from proc print to ODS PDF

The font size in the first example is smaller than the second.  Why this is we cannot tell as you haven't provided any information.  Output can be created using styles/templates, different procedures, different destinations.  Post you code.

Grand Advisor
Posts: 10,210

Re: formatting of output changes from proc print to ODS PDF

By default some of the different ODS destinations may be using different styles. The first thing to try would be to specify a style.

 

 

SAS Super FREQ
Posts: 8,719

Re: formatting of output changes from proc print to ODS PDF

All output from SAS is output from ODS. There is the default ODS HTML output that you get from most editors; the default SASReport output that you get from EG and then there are other outputs that can be created, such as RTF and PDF. Generally, HTML-based destinations do not have column headings wrap as much as RTF or PDF because the HTML browser screen is not "bound" to a physical page size. As Reeza suggests, more of your code is required. What are the names of the 2 files created? Is one of them a default file? What is the result format for the other file? What version of SAS are you using? How are you using SAS -- are you using University Edition, or SAS Enterprise Guide? Did you turn any result options on or off? Does your code have any explicit width controls? It is impossible to do more than guess without more informaiton from you.
cynthia
Ask a Question
Discussion stats
  • 4 replies
  • 372 views
  • 0 likes
  • 5 in conversation