<?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: How to make this code work?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995019#M380577</link>
    <description>&lt;P&gt;You ended the LAYOUT definition, but you never ended the PRINTER destination.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods printer ... ;
ods layout ....;
....
ods layout end;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Oct 2026 02:43:09 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2026-10-18T02:43:09Z</dc:date>
    <item>
      <title>How to make this code work?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995007#M380573</link>
      <description>&lt;P&gt;The code is from the link below.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/How-to-save-out-PLOT-Picture-explicitly/m-p/832204#M23144" target="_blank"&gt;Solved: Re: How to save out PLOT/Picture explicitly?! - SAS Support Communities&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somehow, I run and did not see the picture file. The file location seems alright.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
options nodate nonumber;
options papersize=(7.35in 5.40in);
options leftmargin="0.001in" rightmargin="0.001in";
title;
ods printer printer=png file="e:\temppic\composite.png";
ods layout gridded columns=2 rows=2 advance=proc
    column_gutter=0.1in row_gutter=0.1in;
ods graphics / width=3.5in;
proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
scatter y=units_1 x=cycle;
run;
proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
scatter y=units_2 x=cycle;
run;
proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
scatter y=units_3 x=cycle;
run;
proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
scatter y=units_4 x=cycle;
run;
ods layout end;


9330  ods layout end;
9331  ods _all_ close;
NOTE: ODS PRINTER printed 1 page to C:\Users\Lenovo\composite.png.
9332  options nodate nonumber;
9333  options papersize=(7.35in 5.40in);
9334  options leftmargin="0.001in" rightmargin="0.001in";
9335  title;
9336  ods printer printer=png file="e:\temppic\composite.png";
NOTE: Writing ODS PRINTER output to DISK destination "e:\temppic\composite.png", printer "PNG".
9337  ods layout gridded columns=2 rows=2 advance=proc
9338      column_gutter=0.1in row_gutter=0.1in;
9339  ods graphics / width=3.5in;
9340  proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
9341  scatter y=units_1 x=cycle;
9342  run;

NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           0.31 seconds
      cpu time            0.09 seconds

NOTE: There were 20 observations read from the data set SASHELP.APPLIANC.
      WHERE cycle&amp;lt;=20;

9343  proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
9344  scatter y=units_2 x=cycle;
9345  run;

NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           0.16 seconds
      cpu time            0.01 seconds

NOTE: There were 20 observations read from the data set SASHELP.APPLIANC.
      WHERE cycle&amp;lt;=20;

9346  proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
9347  scatter y=units_3 x=cycle;
9348  run;

NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           0.15 seconds
      cpu time            0.04 seconds

NOTE: There were 20 observations read from the data set SASHELP.APPLIANC.
      WHERE cycle&amp;lt;=20;

9349  proc sgplot data=sashelp.applianc(where=(cycle&amp;lt;=20));
9350  scatter y=units_4 x=cycle;
9351  run;

NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           0.12 seconds
      cpu time            0.00 seconds

NOTE: There were 20 observations read from the data set SASHELP.APPLIANC.
      WHERE cycle&amp;lt;=20;

9352  ods layout end;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Oct 2026 07:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995007#M380573</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2026-10-17T07:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make this code work?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995008#M380574</link>
      <description>&lt;P&gt;BUT&amp;nbsp; if just the top line, one more time, the pic is popped out?!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;9375  ods _all_ close;
NOTE: ODS PRINTER printed 1 page to e:\temppic\composite.png.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;WHy?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2026 07:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995008#M380574</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2026-10-17T07:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make this code work?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995010#M380576</link>
      <description>Because the png file is only created when the PRINTER destination is closed. ODS CLOSE statements should always be part of any code where an ODS destination is opened.</description>
      <pubDate>Sat, 17 Oct 2026 09:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995010#M380576</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-10-17T09:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to make this code work?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995019#M380577</link>
      <description>&lt;P&gt;You ended the LAYOUT definition, but you never ended the PRINTER destination.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods printer ... ;
ods layout ....;
....
ods layout end;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Oct 2026 02:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-this-code-work/m-p/995019#M380577</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-10-18T02:43:09Z</dc:date>
    </item>
  </channel>
</rss>

