<?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: Issue Combining Graphs/Charts to ONE output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-Combining-Graphs-Charts-to-ONE-output/m-p/774290#M246075</link>
    <description>&lt;P&gt;How about this, does it fix the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options linesize=200;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course, if you really need 200 columns for the output, and you really need graphics, perhaps LISTING is not the best output destination.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 16:53:50 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-10-14T16:53:50Z</dc:date>
    <item>
      <title>Issue Combining Graphs/Charts to ONE output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-Combining-Graphs-Charts-to-ONE-output/m-p/774288#M246073</link>
      <description>&lt;P&gt;I'm getting an error when I run my code where I'm attempting to combine charts by creating images:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;options printerpath=png nodate papersize=('30cm','20cm');
ods _all_ close;
ods printer file="X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display\nes_tdsp.png";

proc freq data=active; table nes_tdsp; run;

ods printer close;

ods listing;


***************************************************************************************
					Combine charts
************************************************************************************;

%let png_dest=X:\!!-MarketingAnalytics\Ad Hoc\Keegan\Graphic Display;
libname png_dest "&amp;amp;png_dest.";

ods _all_ close;
/*Use ODS LISTING to create graphic output files*/
ods listing gpath="&amp;amp;png_dest." style=Pearl dpi=300;

ods graphics on / reset=index width=20cm
 outputfmt=png imagename='img1';



 data combine;
 length c1 c2 $500;
 c1='^S={width=20cm just=center preimage="&amp;amp;png_dest\cong_zone.png"}';
 c2='^S={width=20cm just=center preimage="&amp;amp;png_dest\enroll_type.png"}';
 output;
 c1='^S={width=20cm just=center preimage="&amp;amp;png_dest\tdsp.png"}';
 c2='^S={width=20cm just=center preimage="&amp;amp;png_dest\nes_tdsp.png"}';
 output;
run;



proc report data=combine nowindows
 style=[rules=none frame=void cellpadding=0];
 columns c1 c2;
 define c1-c2 /  display ' ';;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've only included one chart to shorten the code I display. But here is the error I get:&lt;/P&gt;&lt;PRE&gt;526  proc report data=combine nowindows
527   style=[rules=none frame=void cellpadding=0];
528   columns c1 c2;
529   define c1-c2 /  display ' ';;
530  run;

ERROR: The width of c1 is not between 1 and 77. Adjust the column width or
       line size.
NOTE: This affects LISTING output.

NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 2 observations read from the data set WORK.COMBINE.
NOTE: PROCEDURE REPORT used (Total process time):
      real time           02 seconds
      cpu time            0.03 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 16:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-Combining-Graphs-Charts-to-ONE-output/m-p/774288#M246073</guid>
      <dc:creator>Keegan</dc:creator>
      <dc:date>2021-10-14T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Combining Graphs/Charts to ONE output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-Combining-Graphs-Charts-to-ONE-output/m-p/774290#M246075</link>
      <description>&lt;P&gt;How about this, does it fix the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options linesize=200;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course, if you really need 200 columns for the output, and you really need graphics, perhaps LISTING is not the best output destination.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 16:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-Combining-Graphs-Charts-to-ONE-output/m-p/774290#M246075</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-14T16:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Combining Graphs/Charts to ONE output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-Combining-Graphs-Charts-to-ONE-output/m-p/774323#M246096</link>
      <description>&lt;P&gt;Hi Paige, where do you insert this option?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 19:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-Combining-Graphs-Charts-to-ONE-output/m-p/774323#M246096</guid>
      <dc:creator>Keegan</dc:creator>
      <dc:date>2021-10-14T19:15:43Z</dc:date>
    </item>
  </channel>
</rss>

