BookmarkSubscribeRSS Feed
hotprawnstar
Calcite | Level 5

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!

4 REPLIES 4
Reeza
Super User

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. 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

ballardw
Super User

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

 

 

Cynthia_sas
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 4 replies
  • 1017 views
  • 0 likes
  • 5 in conversation