<?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 SGPANEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SGPANEL/m-p/534966#M146844</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%splitby(NEWD,18);
run;


ods graphics /reset imagename='Final'
imagefmt=jpeg height=3 in width=6 in;
ods listing gpath= "/folders/myfolders/FITGRAPHS_CONC/" ;

%MACRO TEST;
%DO i=1% TO 34;

DATA NEWD&amp;amp;i;
SET WORK.FIT&amp;amp;i;
PROC SGPANEL DATA =NEWD&amp;amp;i;
PANELBY ID/columns=3  rows=2 ;

scatter x=TIME y=OBS;
series x=TIME y=CONC;
series x=TIME y=PRED /lineattrs=(color=red pattern=dash);
 run;	


RUN;
%end;
%mend TEST;
%TEST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The attached code was used to split a larger file into 34 smaller files to be plotted in SGPANEL. It runs okay. &amp;nbsp; The graph creates a&amp;nbsp; matrix of 3 columns and 2 rows.&amp;nbsp; The only problem is that a graph is in only one column while all the others are blank.&amp;nbsp; Can someone tell me how to get the code to populate all&amp;nbsp; 6 panels?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See an examples.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Final.jpeg" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27094iC09C5116D888DB2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Final.jpeg" alt="Final.jpeg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Final.jpeg" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27095i039CAB4A10A93B0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Final.jpeg" alt="Final.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 19:11:58 GMT</pubDate>
    <dc:creator>jacksonan123</dc:creator>
    <dc:date>2019-02-12T19:11:58Z</dc:date>
    <item>
      <title>SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPANEL/m-p/534966#M146844</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%splitby(NEWD,18);
run;


ods graphics /reset imagename='Final'
imagefmt=jpeg height=3 in width=6 in;
ods listing gpath= "/folders/myfolders/FITGRAPHS_CONC/" ;

%MACRO TEST;
%DO i=1% TO 34;

DATA NEWD&amp;amp;i;
SET WORK.FIT&amp;amp;i;
PROC SGPANEL DATA =NEWD&amp;amp;i;
PANELBY ID/columns=3  rows=2 ;

scatter x=TIME y=OBS;
series x=TIME y=CONC;
series x=TIME y=PRED /lineattrs=(color=red pattern=dash);
 run;	


RUN;
%end;
%mend TEST;
%TEST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The attached code was used to split a larger file into 34 smaller files to be plotted in SGPANEL. It runs okay. &amp;nbsp; The graph creates a&amp;nbsp; matrix of 3 columns and 2 rows.&amp;nbsp; The only problem is that a graph is in only one column while all the others are blank.&amp;nbsp; Can someone tell me how to get the code to populate all&amp;nbsp; 6 panels?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See an examples.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Final.jpeg" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27094iC09C5116D888DB2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Final.jpeg" alt="Final.jpeg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Final.jpeg" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27095i039CAB4A10A93B0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Final.jpeg" alt="Final.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 19:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPANEL/m-p/534966#M146844</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-02-12T19:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPANEL/m-p/534990#M146847</link>
      <description>&lt;P&gt;To use PROC SGPANEL, you do not need to break up the files or use a macro. You just give it the data and specify the size of each panel. Here is an example on some simulated data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do ID = 1 to 34;
   do i = 1 to 40;
      Time = rand("Normal");
      Pred = sin(Time);
      Obs = sin(Time) + rand("Normal", 0, 0.25);
      output;
   end;
end;
run;

proc sort data=Have;
   by ID Time;
run;

PROC SGPANEL DATA =Have;
   PANELBY ID/columns=3  rows=2 ;
   scatter x=TIME y=OBS;
   series x=TIME y=PRED;
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 20:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPANEL/m-p/534990#M146847</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-02-12T20:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPANEL/m-p/535048#M146866</link>
      <description>&lt;P&gt;Worked perfectly.&amp;nbsp; I didn't know that one did not have to split the data set just sort it for SGpanel.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 22:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPANEL/m-p/535048#M146866</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-02-12T22:37:46Z</dc:date>
    </item>
  </channel>
</rss>

