BookmarkSubscribeRSS Feed
Sk4r
Obsidian | Level 7

Hi, I'm working on SAS EG 7.1, I'd like to know if the output generated on an ods pdf can be delivered to the printer using an instruction on SAS, with the same format that is on the pdf. 

 

Thank you very much in advance.

3 REPLIES 3
Reeza
Super User
As in you want to send your results directly to be printed? Any reason to not command the system to print the generated PDF? You can do that with ODS PRINTER but you have to make sure the printer settings are correct, which is usually a registry change.
Sk4r
Obsidian | Level 7

Thank your for your respone, I am not an expert on SAS, but I've changed some setting as prngetlist to recognize printer devices and then set sysprint to a local printer.

 

I employ two ods instructions, one for pdf and another for printer, problem is that printer output is not correct (some graphs, exactly histograms, are not displayed, but a question mark instead, a green box with a white question mark inside image), meanwhile pdf output is correctly stored. After trying a lot of things, searching on google, I couldn't solve it, so I wanted to know if I could send to the printer what the pdf gets as output, as a chained step. 

ballardw
Super User

ODS PRINTER PDF <other ods printer options>;

 

Maybe. This will not support double-byte Type1 fonts.

 

You may also need options PDFMARK PDFNOTE PDFTOC=n  depending what you are attempting in the PDF document.

 

Note that if the ODS styles in effect are different (the defaults are different) then ODS PDF and ODS PRINTER will not generate the same output.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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