<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ? Proc Print output to png or similarly useful format for cut/paste into MS-Word in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-output-to-png-or-similarly-useful-format-for-cut/m-p/196781#M49177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have an issue with this part of your code. 1) you have ODS HTML but ODS RTF CLOSE.&lt;/P&gt;&lt;P&gt;So you may not have the latest version actually on disk. 2) the Run; should be &lt;STRONG&gt;before&lt;/STRONG&gt; the Close statement.&lt;/P&gt;&lt;P&gt;ods html file='c:\VSP G1000 zHPF\BSAM Elapsed Time.rtf';&lt;/P&gt;&lt;P&gt;proc print data=Work.Elapsed_Time_Report uniform noobs split ='/' blankline=5;&lt;/P&gt;&lt;P&gt;/* by Access_Method;&amp;nbsp; */&lt;/P&gt;&lt;P&gt; where Access_Method = 'BSAM';&lt;/P&gt;&lt;P&gt;/* pageby Access_Method; */&lt;/P&gt;&lt;P&gt; var __Host_Channels __Ports CPU_Cap zOFF zON timedif Access_Method;&lt;/P&gt;&lt;P&gt; label&amp;nbsp; __Host_Channels =&amp;nbsp; '# of Host / Channels'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; __Ports&amp;nbsp;&amp;nbsp; = '# of Ports'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CPU_Cap&amp;nbsp;&amp;nbsp; = 'CPU Service/Cap'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zOFF&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Disabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zON&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Enabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; timedif&amp;nbsp;&amp;nbsp; = 'Elapsed Time / Reduced/ hh:mm';&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't say quite what is wrong with the output but for a Word destination either ODS RTF or ODS Tagsets.RTF would be best. If you the issue is the appearance such as font size and colors specify a different style on the ODS statement. Otherwise RTF uses a specific style (which I also don't care for). Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods &lt;STRONG&gt;RTF &lt;/STRONG&gt;file='c:\VSP G1000 zHPF\BSAM Elapsed Time.rtf' &lt;STRONG&gt;style=meadow&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;proc print data=Work.Elapsed_Time_Report uniform noobs split ='/' blankline=5;&lt;/P&gt;&lt;P&gt;/* by Access_Method;&amp;nbsp; */&lt;/P&gt;&lt;P&gt; where Access_Method = 'BSAM';&lt;/P&gt;&lt;P&gt;/* pageby Access_Method; */&lt;/P&gt;&lt;P&gt; var __Host_Channels __Ports CPU_Cap zOFF zON timedif Access_Method;&lt;/P&gt;&lt;P&gt; label&amp;nbsp; __Host_Channels =&amp;nbsp; '# of Host / Channels'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; __Ports&amp;nbsp;&amp;nbsp; = '# of Ports'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CPU_Cap&amp;nbsp;&amp;nbsp; = 'CPU Service/Cap'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zOFF&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Disabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zON&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Enabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; timedif&amp;nbsp;&amp;nbsp; = 'Elapsed Time / Reduced/ hh:mm';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that with proc print you can also provide specific styles for each variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 19:32:30 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-04-15T19:32:30Z</dc:date>
    <item>
      <title>? Proc Print output to png or similarly useful format for cut/paste into MS-Word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-output-to-png-or-similarly-useful-format-for-cut/m-p/196780#M49176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been experimenting with ODS statements trying to get the results of a PROC PRINT statement into a file in a format that is easy to cut/paste into an MS-Word document. The RESULTS of the PROC PRINT look perfect for my needs but I'm getting nowhere with writing to a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A portion of the code (ODS statements, the PROC PRINT) are attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 18:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-output-to-png-or-similarly-useful-format-for-cut/m-p/196780#M49176</guid>
      <dc:creator>lloydc</dc:creator>
      <dc:date>2015-04-15T18:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: ? Proc Print output to png or similarly useful format for cut/paste into MS-Word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-output-to-png-or-similarly-useful-format-for-cut/m-p/196781#M49177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have an issue with this part of your code. 1) you have ODS HTML but ODS RTF CLOSE.&lt;/P&gt;&lt;P&gt;So you may not have the latest version actually on disk. 2) the Run; should be &lt;STRONG&gt;before&lt;/STRONG&gt; the Close statement.&lt;/P&gt;&lt;P&gt;ods html file='c:\VSP G1000 zHPF\BSAM Elapsed Time.rtf';&lt;/P&gt;&lt;P&gt;proc print data=Work.Elapsed_Time_Report uniform noobs split ='/' blankline=5;&lt;/P&gt;&lt;P&gt;/* by Access_Method;&amp;nbsp; */&lt;/P&gt;&lt;P&gt; where Access_Method = 'BSAM';&lt;/P&gt;&lt;P&gt;/* pageby Access_Method; */&lt;/P&gt;&lt;P&gt; var __Host_Channels __Ports CPU_Cap zOFF zON timedif Access_Method;&lt;/P&gt;&lt;P&gt; label&amp;nbsp; __Host_Channels =&amp;nbsp; '# of Host / Channels'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; __Ports&amp;nbsp;&amp;nbsp; = '# of Ports'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CPU_Cap&amp;nbsp;&amp;nbsp; = 'CPU Service/Cap'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zOFF&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Disabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zON&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Enabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; timedif&amp;nbsp;&amp;nbsp; = 'Elapsed Time / Reduced/ hh:mm';&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't say quite what is wrong with the output but for a Word destination either ODS RTF or ODS Tagsets.RTF would be best. If you the issue is the appearance such as font size and colors specify a different style on the ODS statement. Otherwise RTF uses a specific style (which I also don't care for). Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods &lt;STRONG&gt;RTF &lt;/STRONG&gt;file='c:\VSP G1000 zHPF\BSAM Elapsed Time.rtf' &lt;STRONG&gt;style=meadow&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;proc print data=Work.Elapsed_Time_Report uniform noobs split ='/' blankline=5;&lt;/P&gt;&lt;P&gt;/* by Access_Method;&amp;nbsp; */&lt;/P&gt;&lt;P&gt; where Access_Method = 'BSAM';&lt;/P&gt;&lt;P&gt;/* pageby Access_Method; */&lt;/P&gt;&lt;P&gt; var __Host_Channels __Ports CPU_Cap zOFF zON timedif Access_Method;&lt;/P&gt;&lt;P&gt; label&amp;nbsp; __Host_Channels =&amp;nbsp; '# of Host / Channels'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; __Ports&amp;nbsp;&amp;nbsp; = '# of Ports'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CPU_Cap&amp;nbsp;&amp;nbsp; = 'CPU Service/Cap'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zOFF&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Disabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; zON&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'Elapsed Time / zHPF Enabled/ hh:mm'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; timedif&amp;nbsp;&amp;nbsp; = 'Elapsed Time / Reduced/ hh:mm';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that with proc print you can also provide specific styles for each variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 19:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-output-to-png-or-similarly-useful-format-for-cut/m-p/196781#M49177</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-15T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: ? Proc Print output to png or similarly useful format for cut/paste into MS-Word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-output-to-png-or-similarly-useful-format-for-cut/m-p/196782#M49178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, that solution works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SAS, I create a lot of plots via GPLOT or SGPLOT and have found that saving them as png files makes inserting into a Word Text Box easiest, with the ability to re-size the graphic much easier and generally sharper looking results. One thing I noticed with this is that the SAS Title isn't part of the table but I can get around that by just using a Word caption.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a time-crunch to deal with, getting it absolutely beautiful isn't very high on the priority list. This works well. Again, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-output-to-png-or-similarly-useful-format-for-cut/m-p/196782#M49178</guid>
      <dc:creator>lloydc</dc:creator>
      <dc:date>2015-04-15T20:06:51Z</dc:date>
    </item>
  </channel>
</rss>

