<?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 SGPANEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293915#M61274</link>
    <description>&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;I agree with you that I did not explain the code properly. But Chris did answer my question. The reason why I have two ods HTML is because, the inner ods Html (id=4) generates graphs in &lt;STRONG&gt;&lt;U&gt;separate&lt;/U&gt; ".htm file"&lt;/STRONG&gt;. While the outer ods html (id=3)creates all the graphs in &lt;STRONG&gt;&lt;U&gt;one single&lt;/U&gt; ".html file"&lt;/STRONG&gt;. This helps save time by NOT&amp;nbsp;using the sgpanel twice.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you understood the reason why...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2016 01:50:11 GMT</pubDate>
    <dc:creator>SASER</dc:creator>
    <dc:date>2016-08-25T01:50:11Z</dc:date>
    <item>
      <title>Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293258#M60981</link>
      <description>&lt;P&gt;Could anyone please tell me if a PROC SGPANEL will create two picture file of the same kind?&lt;BR /&gt;Details:&lt;/P&gt;&lt;P&gt;I have a program that creates graphs using Proc Sgpanel. But it is creates 2 picture files exactly the same. But all I want is to create only one picture file not two...&lt;BR /&gt;If this explanation is not enough please let me know so I can elaborate it...&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 20:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293258#M60981</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-22T20:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293279#M60993</link>
      <description>&lt;P&gt;It will help greatly to show the code used to generate the graphs and the actual result obtained. You can attach image and text files to your post, PNG would be best for images..&lt;/P&gt;
&lt;P&gt;You should be prepared to discuss the data.&lt;/P&gt;
&lt;P&gt;And if you only want one graph then maybe you should be looking at SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 22:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293279#M60993</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-22T22:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293318#M61011</link>
      <description>&lt;P&gt;It looks like you have several ODS destinations open, like LISTING and HTML?&lt;/P&gt;
&lt;P&gt;If so, close them all and open just the one you need.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 03:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293318#M61011</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-08-23T03:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293322#M61013</link>
      <description>&lt;P&gt;This can happen&amp;nbsp;if you have two ODS destinations opened associated with the same graphic file type, such as the LISTING and HTML destinations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 03:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293322#M61013</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-08-23T03:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293340#M61024</link>
      <description>&lt;P&gt;Hi ChrisNZ,&lt;/P&gt;&lt;P&gt;Thanks for the reply...I do have two ods html opened. But they have their own unique id...I need to keep two ods destinations open for the reports to be in two different forms...Could you please suggest me some thing to suppress the other generation of the picture file...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 05:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293340#M61024</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-23T05:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293342#M61026</link>
      <description>&lt;P&gt;Thanks Ballardw for the reply...I need to have a couple of graphs together in one picture file. That is why I have to use sgpanel...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 05:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293342#M61026</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-23T05:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293343#M61027</link>
      <description>&lt;P&gt;Thanks PGStats for the reply...Like I said to chrisNZ, I do have 2 ods html with (id=)opened to create one report in two different formats/ways. Do you think there is a way to suppress the generation of one of the picture?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 05:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293343#M61027</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-23T05:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293347#M61031</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76262"&gt;@DSAS﻿&lt;/a&gt;&amp;nbsp;Please stop having us try to guess what your code looks like and giving piecemeal information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;&amp;nbsp;suggested, you should share as much as you can in the first post. A good start would be your code. A sample data to run it doesn't hurt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 05:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293347#M61031</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-08-23T05:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293407#M61061</link>
      <description>&lt;P&gt;Hi ChrisNZ,&lt;/P&gt;&lt;P&gt;The code is for this program is really big and&amp;nbsp;has got lots of macro calls too. I have taken the part that is relevent here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html(id=3)&lt;/P&gt;&lt;P&gt;path=;&lt;/P&gt;&lt;P&gt;gpath=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;"a list of things to run from a dataset; more like list to do:LIST1";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Macro1;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;"a list of things to run from inside LIST1. more like a sub list: LIST2";&lt;/P&gt;&lt;P&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html (id=4)&lt;/P&gt;&lt;P&gt;path=;&lt;/P&gt;&lt;P&gt;gpath=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on/&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;''(some options)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;''&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc sgpanel data=;&lt;/P&gt;&lt;P&gt;panel by.....;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html (id=4) close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mend Macro1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html (id=3) close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I did not confuse you with the code...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 12:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293407#M61061</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-23T12:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293415#M61065</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Your code is NOT helpful at all. Having the %MACRO and %MEND inside the ODS HTML call is not useful. The steps inside the MACRO program will not be generated or sent to the compiler until the macro program is invoked. You are only showing the skeleton of a program. Here are 2 real examples of using SGPANEL with ODS HTML and showing the code simply without using MACRO:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html file='sgpanel_examp.html';
 
title 'Two Charts';
footnote;
proc sgpanel data=sashelp.prdsale ;
  panelby division;
  vbar product / response=actual stat=mean limits=upper limitstat=clm attrid=myid group=product;
run;

proc sgpanel data=sashelp.heart;
  panelby chol_status;
  scatter x=diastolic y=systolic / group=sex;
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The first example uses SASHELP.PRDSALE and does a VBAR chart side by side. There are only 2 values for DIVISION, so this makes 2 panels side by side, one for each division.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second example uses SASHELP.HEART. The variable CHOL_STATUS has 3 possible values, when I allow SGPANEL to do the arranging, it makes an arrangement of 4 panels, with 3 of the panels filled. I could change that arrangement with options in the PANELBY statement. My code can be copied and run because every SAS installation has the SASHELP library. SASHELP.HEART has been part of SASHELP since SAS 9.2, which is when SGPANEL came out, so can you come up with an example that SHOWS what your issue is with SGPANEL? As you can see when you run my program, SGPANEL will automatically arrange the panels based on the number of PANELBY variable values it detects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to have code so we can actually see what you're creating. It doesn't have to be with your data. Use some SASHELP data. There are 200 datasets there. Is your PANELBY variable "predictable" are there always 2 values, or 3 values or 4 values or can the number of PANELBY variable change? You&amp;nbsp; can at least share WHAT the statement is that is inside your SGPANEL procedure? Is it a VBAR statement, a SCATTER, a HISTOGRAM? You are asking for help, but we need more, real information from you in order to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 13:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293415#M61065</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-23T13:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293438#M61071</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;I appologize for the confusion. I have issues running sas in my Laptop and the other place I have access is my work computer. This is the reason why I cant copy paste the code...&lt;BR /&gt;I wanted to give you the skeleton structure coz its easy to know what is happening in little code that I can provide...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html (id=3) file="test_graph_major.html"&lt;/P&gt;&lt;P&gt;path="c:\graph"&lt;/P&gt;&lt;P&gt;gpath="c:\graph\pic" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;"LIST1";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Macro graph1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;" LIST2";&lt;/P&gt;&lt;P&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html (id=4) file="test_graph_minor.html"&lt;/P&gt;&lt;P&gt;path="c:\graph"&lt;/P&gt;&lt;P&gt;gpath="c:\graph\pic" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on/ reset=index imagfmt=png imagename=chart;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title 'test chart';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgpanel data= sashelp.cars;&lt;/P&gt;&lt;P&gt;panel by Type/ onepanel columns=5 novarname;&lt;/P&gt;&lt;P&gt;vbar &amp;nbsp;MSRP / response=horsepower stat=mean;&lt;/P&gt;&lt;P&gt;colaxis fitpolicy=staggerithin;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html (id=4) close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mend Graph1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;%Graph1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html (id=3) close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cinthia, the LIST1 and LIST2 are difficult to explain by typing,but I will try to do my best to explain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIST1&lt;/P&gt;&lt;P&gt;name &amp;nbsp;age sex height batch&lt;/P&gt;&lt;P&gt;ren &amp;nbsp; &amp;nbsp; &amp;nbsp;12 &amp;nbsp; m &amp;nbsp; &amp;nbsp; 111 &amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;/P&gt;&lt;P&gt;zen &amp;nbsp; &amp;nbsp; &amp;nbsp;23 &amp;nbsp; f &amp;nbsp; &amp;nbsp; &amp;nbsp; 122 &amp;nbsp; &amp;nbsp; &amp;nbsp;a&lt;/P&gt;&lt;P&gt;sam &amp;nbsp; &amp;nbsp; 43 &amp;nbsp; m &amp;nbsp; &amp;nbsp; 143 &amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;&lt;P&gt;liv &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 52 &amp;nbsp; f &amp;nbsp; &amp;nbsp; &amp;nbsp; 165 &amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIST2&lt;/P&gt;&lt;P&gt;name &amp;nbsp; sex &amp;nbsp; batch&lt;/P&gt;&lt;P&gt;ren &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;/P&gt;&lt;P&gt;zen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;/P&gt;&lt;P&gt;sam &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;&lt;P&gt;liv &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;f &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;Html (id=3) will use LIST1 based on "NAME", this creates one charts per NAME value&lt;/P&gt;&lt;P&gt;Html(id=4) will use LIST2 based on "BATCH", hence 2 charts are made per BATCH value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps Cynthia...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 14:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293438#M61071</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-23T14:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293587#M61137</link>
      <description>&lt;P&gt;I don't follow everything in your post, but the bottom line is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; if you call proc gpanel and have 2 HTML&amp;nbsp;destinations open, you'll create 2 image files.&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; if you call proc gpanel twice and have 2 HTML&amp;nbsp;destinations open, you'll create 4 image files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is bothering you with this? Do you want successive proc gpanel calls to write to the same image?&lt;/P&gt;
&lt;P&gt;If so, this is not how SAS graphics work.&lt;/P&gt;
&lt;P&gt;What you can do though is use proc greplay to combine graphic outputs.&lt;/P&gt;
&lt;P&gt;It will be painful though, because 1) EG makes it difficult by not showing catalog entries, and 2) ODS does not create a gseg catalog entries, so you must use SAS/GRAPH. Why so many dumb limitations I don't know,&amp;nbsp;so be patient if you go this route.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a discussion here: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Graphics-and-proc-greplay/td-p/58932" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Graphics-and-proc-greplay/td-p/58932&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 22:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293587#M61137</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-08-23T22:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293595#M61141</link>
      <description>Hi:&lt;BR /&gt;  I agree with Chris. I do not understand the nesting of your HTML files the way you are. It sounds like ODS HTML is doing exactly what you told it to do. &lt;BR /&gt;&lt;BR /&gt;  It makes more sense to me to have ONLY the HTML (ID=3) "sandwich" by itself for the NAME report/graph and then have ONLY the HTML(ID=4) for the BATCH report/graph. But, even so, your skeleton description of the code just doesn't make sense to me.&lt;BR /&gt;&lt;BR /&gt;And, Chris is also correct that you have to decide how you want to create the graphs. To a certain extent SGPANEL and ODS make it unnecessary to need to use SAS/GRAPH and GREPLAY for a large portion of graphs. Since I still do not have a visual of what you mean by 1 graph per NAME or 1 graph per BATCH, I am still in the dark. 1 graph per NAME doesn't make sense, anyway -- would you only have 1 bar for each of your names? &lt;BR /&gt;&lt;BR /&gt;Sending code for SASHELP.CARS, doesn't help. I want to see the SGPANEL code that you are using for your NAMES data and your BATCH data. I cannot imagine what your PANELBY variable is or what your VBAR or response variables are given that you said you will get 1 graph for every name.&lt;BR /&gt;&lt;BR /&gt;  Sorry, I just don't get it.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2016 01:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293595#M61141</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-24T01:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293901#M61264</link>
      <description>&lt;P&gt;To use proc greplay with SG procedure outputs:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/41/461.html" target="_blank"&gt;http://support.sas.com/kb/41/461.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 00:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293901#M61264</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-08-25T00:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293915#M61274</link>
      <description>&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;I agree with you that I did not explain the code properly. But Chris did answer my question. The reason why I have two ods HTML is because, the inner ods Html (id=4) generates graphs in &lt;STRONG&gt;&lt;U&gt;separate&lt;/U&gt; ".htm file"&lt;/STRONG&gt;. While the outer ods html (id=3)creates all the graphs in &lt;STRONG&gt;&lt;U&gt;one single&lt;/U&gt; ".html file"&lt;/STRONG&gt;. This helps save time by NOT&amp;nbsp;using the sgpanel twice.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you understood the reason why...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 01:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293915#M61274</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-25T01:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293916#M61275</link>
      <description>&lt;P&gt;Thank you Chris for the additional informations and links. Thank you all for helping people like us in solving our problems...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 01:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SGPANEL/m-p/293916#M61275</guid>
      <dc:creator>SASER</dc:creator>
      <dc:date>2016-08-25T01:53:32Z</dc:date>
    </item>
  </channel>
</rss>

