<?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: Frequency as an image file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774035#M245955</link>
    <description>&lt;P&gt;I think files should have an extension? I'm also surprised to see a path with exclamation marks. Is that actually in your file name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display\myFile.png";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400992"&gt;@Keegan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to print my proc freq data output to a .png file for future use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;options printerpath=png nodate papersize=('5.75in','4.75in');
ods _all_ close;
ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display";

proc freq data=active; table congestion_Zone; run;

ods printer close;

ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is my error in the log:&lt;/P&gt;
&lt;PRE&gt;186   options printerpath=png nodate papersize=('5.75in','4.75in');
187  ods _all_ close;
188  ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic
188! Display";
NOTE: Writing ODS PRINTER output to DISK destination
      "X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display",
      printer "png".
189
190   proc freq data=active; tables enrollment_type; run;

NOTE: There were 223584 observations read from the data set WORK.ACTIVE.
NOTE: PROCEDURE FREQ used (Total process time):
      real time           3.83 seconds
      cpu time            3.37 seconds


191
192  ods printer close;
&lt;FONT color="#FF0000"&gt;ERROR: Invalid file, X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display.&lt;/FONT&gt;
193
194  ods listing;&lt;/PRE&gt;
&lt;P&gt;The proc freq output by itself would look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keegan_0-1634155732127.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64666iD9DB12EF30F0225C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keegan_0-1634155732127.png" alt="Keegan_0-1634155732127.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there something I'm missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Keegan&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 20:20:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-10-13T20:20:28Z</dc:date>
    <item>
      <title>Frequency as an image file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774031#M245954</link>
      <description>&lt;P&gt;I'm trying to print my proc freq data output to a .png file for future use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;options printerpath=png nodate papersize=('5.75in','4.75in');
ods _all_ close;
ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display";

proc freq data=active; table congestion_Zone; run;

ods printer close;

ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is my error in the log:&lt;/P&gt;&lt;PRE&gt;186   options printerpath=png nodate papersize=('5.75in','4.75in');
187  ods _all_ close;
188  ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic
188! Display";
NOTE: Writing ODS PRINTER output to DISK destination
      "X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display",
      printer "png".
189
190   proc freq data=active; tables enrollment_type; run;

NOTE: There were 223584 observations read from the data set WORK.ACTIVE.
NOTE: PROCEDURE FREQ used (Total process time):
      real time           3.83 seconds
      cpu time            3.37 seconds


191
192  ods printer close;
&lt;FONT color="#FF0000"&gt;ERROR: Invalid file, X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display.&lt;/FONT&gt;
193
194  ods listing;&lt;/PRE&gt;&lt;P&gt;The proc freq output by itself would look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keegan_0-1634155732127.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64666iD9DB12EF30F0225C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keegan_0-1634155732127.png" alt="Keegan_0-1634155732127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there something I'm missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Keegan&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 20:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774031#M245954</guid>
      <dc:creator>Keegan</dc:creator>
      <dc:date>2021-10-13T20:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency as an image file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774035#M245955</link>
      <description>&lt;P&gt;I think files should have an extension? I'm also surprised to see a path with exclamation marks. Is that actually in your file name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display\myFile.png";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/400992"&gt;@Keegan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to print my proc freq data output to a .png file for future use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;options printerpath=png nodate papersize=('5.75in','4.75in');
ods _all_ close;
ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display";

proc freq data=active; table congestion_Zone; run;

ods printer close;

ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is my error in the log:&lt;/P&gt;
&lt;PRE&gt;186   options printerpath=png nodate papersize=('5.75in','4.75in');
187  ods _all_ close;
188  ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic
188! Display";
NOTE: Writing ODS PRINTER output to DISK destination
      "X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display",
      printer "png".
189
190   proc freq data=active; tables enrollment_type; run;

NOTE: There were 223584 observations read from the data set WORK.ACTIVE.
NOTE: PROCEDURE FREQ used (Total process time):
      real time           3.83 seconds
      cpu time            3.37 seconds


191
192  ods printer close;
&lt;FONT color="#FF0000"&gt;ERROR: Invalid file, X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display.&lt;/FONT&gt;
193
194  ods listing;&lt;/PRE&gt;
&lt;P&gt;The proc freq output by itself would look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keegan_0-1634155732127.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64666iD9DB12EF30F0225C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keegan_0-1634155732127.png" alt="Keegan_0-1634155732127.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there something I'm missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Keegan&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 20:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774035#M245955</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-13T20:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency as an image file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774036#M245956</link>
      <description>&lt;P&gt;Are you using a remote SAS server by any chance as SAS is saying this is an invalid file path:&amp;nbsp;X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 20:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774036#M245956</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-13T20:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency as an image file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774037#M245957</link>
      <description>&lt;P&gt;That was it! I just needed to add the file name in the extension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yes, our folder location for our group has those punctuation marks to make it appear at the top of a long list of folders for other groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 20:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-as-an-image-file/m-p/774037#M245957</guid>
      <dc:creator>Keegan</dc:creator>
      <dc:date>2021-10-13T20:25:51Z</dc:date>
    </item>
  </channel>
</rss>

