<?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: ODS Output to Excel of GPLOT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48697#M6316</link>
    <description>Thanks for the reply and support.&lt;BR /&gt;
&lt;BR /&gt;
We found some material on following link&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/excelexamples.html#multiwork" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/excelexamples.html#multiwork&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
depending on the material available we were able to achieve the required result.&lt;BR /&gt;
&lt;BR /&gt;
Am giving the script which we had written to achieve the result.&lt;BR /&gt;
goptions reset=global gunit=pct border cback=white                                                                                      &lt;BR /&gt;
         colors=(black blue green red)                                                                                                  &lt;BR /&gt;
         ftitle=swissb ftext=swiss htitle=6 htext=4;                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
  data jobs;                                                                                                                            &lt;BR /&gt;
   length eng $5;                                                                                                                       &lt;BR /&gt;
   input eng dollars num;                                                                                                               &lt;BR /&gt;
   datalines;                                                                                                                           &lt;BR /&gt;
Civil 27308 73273                                                                                                                       &lt;BR /&gt;
Aero  29844 70192                                                                                                                       &lt;BR /&gt;
Elec  22920 89382                                                                                                                       &lt;BR /&gt;
Mech  32816 19601                                                                                                                       &lt;BR /&gt;
Chem  28116 25541                                                                                                                       &lt;BR /&gt;
Petro 18444 34833                                                                                                                       &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
proc template;                                                                                                                          &lt;BR /&gt;
       define tagset tagsets.test;                                                                                                      &lt;BR /&gt;
       parent=tagsets.phtml;                                                                                                            &lt;BR /&gt;
             define event doc_body;                                                                                                     &lt;BR /&gt;
              start:                                                                                                                    &lt;BR /&gt;
               put "
               put " onunload=""shutdown()""";                                                                                          &lt;BR /&gt;
               put " bgproperties=""Fixed""" / if exist( WATERMARK );                                                                   &lt;BR /&gt;
                   trigger style_inline;                                                                                                &lt;BR /&gt;
               put "&amp;gt;" NL;                                                                                                              &lt;BR /&gt;
               put "&lt;SCRIPT language="" javascript=""&gt;" NL;                                                                               &amp;lt;br&amp;gt;
               put "&amp;lt;!-- " NL;                                                                                                          &amp;lt;br&amp;gt;
               put "// This script is to load all object onLoad() functions " NL;                                                       &amp;lt;br&amp;gt;
               put "function startup(){}" NL;                                                                                           &amp;lt;br&amp;gt;
               put "function shutdown(){}" NL;                                                                                          &amp;lt;br&amp;gt;
               put " " NL;                                                                                                              &amp;lt;br&amp;gt;
               put "//--&amp;gt;" NL;                                                                                                          &amp;lt;br&amp;gt;
               put "&lt;/SCRIPT&gt;" NL;                                                                                                      &lt;BR /&gt;
               put NL;                                                                                                                  &lt;BR /&gt;
              finish:                                                                                                                   &lt;BR /&gt;
               put "" NL;                                                                                                        &lt;BR /&gt;
             end;                                                                                                                       &lt;BR /&gt;
             define event image;                                                                                                        &lt;BR /&gt;
               put "&lt;IMG /&gt;
               put " src=""";                                                                                                           &lt;BR /&gt;
               put BASENAME / if !exist( NOBASE );                                                                                      &lt;BR /&gt;
               put URL;                                                                                                                 &lt;BR /&gt;
               put """";                                                                                                                &lt;BR /&gt;
               putq " border=" BORDERWIDTH;                                                                                             &lt;BR /&gt;
               put " usemap=""#" @CLIENTMAP;                                                                                            &lt;BR /&gt;
               put """" NL / if exist(BORDERWIDTH,@CLIENTMAP);                                                                          &lt;BR /&gt;
               putq " class=" HTMLCLASS;                                                                                                &lt;BR /&gt;
               putq " id=" HTMLID;                                                                                                      &lt;BR /&gt;
               putq "alt=""this is a test""";                                                                                           &lt;BR /&gt;
               PUTQ "HEIGHT=400 WIDTH=500";                                                                                             &lt;BR /&gt;
               put "&amp;gt;" NL;                                                                                                              &lt;BR /&gt;
             end;                                                                                                                       &lt;BR /&gt;
      end;                                                                                                                              &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
ods listing close;                                                                                                                      &lt;BR /&gt;
ods markup body='test.xls' path='c:\test' tagset=tagsets.test;                                                                          &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
proc print data=sashelp.class;                                                                                                          &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
Proc gplot data=jobs;                                                                                                                   &lt;BR /&gt;
         format dollars dollar9.;                                                                                                       &lt;BR /&gt;
         bubble dollars*eng=num / haxis=axis1;                                                                                          &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                 &lt;BR /&gt;
ods markup close;                                                                                                                       &lt;BR /&gt;
ods listing;</description>
    <pubDate>Mon, 13 Oct 2008 03:03:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-13T03:03:28Z</dc:date>
    <item>
      <title>ODS Output to Excel of GPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48694#M6313</link>
      <description>goptions reset=global gunit=pct border cback=white&lt;BR /&gt;
         colors=(black blue green red)&lt;BR /&gt;
         ftitle=swissb ftext=swiss htitle=6 htext=4;&lt;BR /&gt;
 &lt;BR /&gt;
  data jobs;&lt;BR /&gt;
   length eng $5;&lt;BR /&gt;
   input eng dollars num;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
Civil 27308 73273&lt;BR /&gt;
Aero  29844 70192&lt;BR /&gt;
Elec  22920 89382&lt;BR /&gt;
Mech  32816 19601&lt;BR /&gt;
Chem  28116 25541&lt;BR /&gt;
Petro 18444 34833&lt;BR /&gt;
;&lt;BR /&gt;
 &lt;BR /&gt;
  title1 'Member Profile';&lt;BR /&gt;
title2 'Salaries and Number of Member Engineers';&lt;BR /&gt;
footnote h=3 j=r 'GPLBUBL1 ';&lt;BR /&gt;
 &lt;BR /&gt;
  axis1 offset=(5,5);&lt;BR /&gt;
&lt;BR /&gt;
ods html file='c:\tstgplot.html';&lt;BR /&gt;
*ods pdf body = 'c:\tstgplot.pdf';&lt;BR /&gt;
&lt;BR /&gt;
Proc gplot data=jobs;&lt;BR /&gt;
   format dollars dollar9.;&lt;BR /&gt;
   bubble dollars*eng=num / haxis=axis1;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
*ods pdf close;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
--------------------------------------&lt;BR /&gt;
I have tried the above code to give the GPLOT output into Excel, While cheking the Excel file, it doesn't contain the output.  While the same code works with ODS to PDF .&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help on me how to export the GPLOT to Excel.</description>
      <pubDate>Mon, 22 Sep 2008 03:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48694#M6313</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-22T03:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel of GPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48695#M6314</link>
      <description>Hi.&lt;BR /&gt;
The problem is, the way HTML handles image files is a problem here : when you see a picture in a Web page (any time), it is just a link to a separate image file. In Excel, the link from the HTML file to the image does not work very well to display (at least in my experience).&lt;BR /&gt;
In contrast, PDF includes both text &amp;amp; picture. That's why it works so fine in your example.&lt;BR /&gt;
What you can do is change the HTML destination for TAGSETS.EXCELXP, provided you run your programs with SAS version 9.1.3 at least, and read the files with Excel 2002 at least. It is designed to build REAL (almost) Excel files, which can include pictures.&lt;BR /&gt;
&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Tue, 23 Sep 2008 08:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48695#M6314</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-09-23T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel of GPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48696#M6315</link>
      <description>Hi:&lt;BR /&gt;
  The reason this works for PDF is that your image is converted to internal PDF format when the PDF file is created.&lt;BR /&gt;
  For HTML, you have to deal with 2 files being created:&lt;BR /&gt;
1) the HTML file itself&lt;BR /&gt;
2) the &amp;lt;IMG&amp;gt; SRC= file which contains the SAS/Graph-created image.&lt;BR /&gt;
 &lt;BR /&gt;
  Generally, when you create SAS/Graph output to ODS HTML, you should consider using the PATH= and GPATH= options. The PATH= option determines the physical location of the HTML file (#1) and the GPATH= option determines the physical location of the IMG file (#2). What's probably happening is that your HTML file is going to your C:\ root directory, but your IMG file is going to your SAS working directory (which is usually in c:\Documents and Settings....)&lt;BR /&gt;
&lt;BR /&gt;
  Try this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html path='c:\' (url=none)&lt;BR /&gt;
         gpath='c:\' (url=none)&lt;BR /&gt;
         file='gplot.html';&lt;BR /&gt;
   &lt;BR /&gt;
Proc gplot data=jobs;&lt;BR /&gt;
format dollars dollar9.;&lt;BR /&gt;
bubble dollars*eng=num / haxis=axis1;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
                          &lt;BR /&gt;
ods html close;&lt;BR /&gt;
                                                                                   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                                          &lt;BR /&gt;
The URL=NONE suboption tells ODS not to use the physical 'c:\' location in any URLs that it builds internally -- this is generally what you want with your IMG tags -- which means that the relative reference that is built will work whereever you move both files, as long as they are stored in the same directory on your web server or other machine.&lt;BR /&gt;
&lt;BR /&gt;
Also, if you are running in SAS 9.1.3, you may find that ODS MSOFFICE2K produces HTML output that is more compatible with Microsoft products than standard HTML -- just because MSOFFICE2K produces the kind of HTML tags that Office is happier with. ODS HTML in SAS 9 produces HTML 4.0 compliant HTML tags &amp;amp; Microsoft didn't like HTML 4 as much as it likes its own HTML tags.&lt;BR /&gt;
    &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 23 Sep 2008 08:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48696#M6315</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-09-23T08:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel of GPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48697#M6316</link>
      <description>Thanks for the reply and support.&lt;BR /&gt;
&lt;BR /&gt;
We found some material on following link&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/excelexamples.html#multiwork" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/excelexamples.html#multiwork&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
depending on the material available we were able to achieve the required result.&lt;BR /&gt;
&lt;BR /&gt;
Am giving the script which we had written to achieve the result.&lt;BR /&gt;
goptions reset=global gunit=pct border cback=white                                                                                      &lt;BR /&gt;
         colors=(black blue green red)                                                                                                  &lt;BR /&gt;
         ftitle=swissb ftext=swiss htitle=6 htext=4;                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
  data jobs;                                                                                                                            &lt;BR /&gt;
   length eng $5;                                                                                                                       &lt;BR /&gt;
   input eng dollars num;                                                                                                               &lt;BR /&gt;
   datalines;                                                                                                                           &lt;BR /&gt;
Civil 27308 73273                                                                                                                       &lt;BR /&gt;
Aero  29844 70192                                                                                                                       &lt;BR /&gt;
Elec  22920 89382                                                                                                                       &lt;BR /&gt;
Mech  32816 19601                                                                                                                       &lt;BR /&gt;
Chem  28116 25541                                                                                                                       &lt;BR /&gt;
Petro 18444 34833                                                                                                                       &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
proc template;                                                                                                                          &lt;BR /&gt;
       define tagset tagsets.test;                                                                                                      &lt;BR /&gt;
       parent=tagsets.phtml;                                                                                                            &lt;BR /&gt;
             define event doc_body;                                                                                                     &lt;BR /&gt;
              start:                                                                                                                    &lt;BR /&gt;
               put "
               put " onunload=""shutdown()""";                                                                                          &lt;BR /&gt;
               put " bgproperties=""Fixed""" / if exist( WATERMARK );                                                                   &lt;BR /&gt;
                   trigger style_inline;                                                                                                &lt;BR /&gt;
               put "&amp;gt;" NL;                                                                                                              &lt;BR /&gt;
               put "&lt;SCRIPT language="" javascript=""&gt;" NL;                                                                               &amp;lt;br&amp;gt;
               put "&amp;lt;!-- " NL;                                                                                                          &amp;lt;br&amp;gt;
               put "// This script is to load all object onLoad() functions " NL;                                                       &amp;lt;br&amp;gt;
               put "function startup(){}" NL;                                                                                           &amp;lt;br&amp;gt;
               put "function shutdown(){}" NL;                                                                                          &amp;lt;br&amp;gt;
               put " " NL;                                                                                                              &amp;lt;br&amp;gt;
               put "//--&amp;gt;" NL;                                                                                                          &amp;lt;br&amp;gt;
               put "&lt;/SCRIPT&gt;" NL;                                                                                                      &lt;BR /&gt;
               put NL;                                                                                                                  &lt;BR /&gt;
              finish:                                                                                                                   &lt;BR /&gt;
               put "" NL;                                                                                                        &lt;BR /&gt;
             end;                                                                                                                       &lt;BR /&gt;
             define event image;                                                                                                        &lt;BR /&gt;
               put "&lt;IMG /&gt;
               put " src=""";                                                                                                           &lt;BR /&gt;
               put BASENAME / if !exist( NOBASE );                                                                                      &lt;BR /&gt;
               put URL;                                                                                                                 &lt;BR /&gt;
               put """";                                                                                                                &lt;BR /&gt;
               putq " border=" BORDERWIDTH;                                                                                             &lt;BR /&gt;
               put " usemap=""#" @CLIENTMAP;                                                                                            &lt;BR /&gt;
               put """" NL / if exist(BORDERWIDTH,@CLIENTMAP);                                                                          &lt;BR /&gt;
               putq " class=" HTMLCLASS;                                                                                                &lt;BR /&gt;
               putq " id=" HTMLID;                                                                                                      &lt;BR /&gt;
               putq "alt=""this is a test""";                                                                                           &lt;BR /&gt;
               PUTQ "HEIGHT=400 WIDTH=500";                                                                                             &lt;BR /&gt;
               put "&amp;gt;" NL;                                                                                                              &lt;BR /&gt;
             end;                                                                                                                       &lt;BR /&gt;
      end;                                                                                                                              &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
ods listing close;                                                                                                                      &lt;BR /&gt;
ods markup body='test.xls' path='c:\test' tagset=tagsets.test;                                                                          &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
proc print data=sashelp.class;                                                                                                          &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
Proc gplot data=jobs;                                                                                                                   &lt;BR /&gt;
         format dollars dollar9.;                                                                                                       &lt;BR /&gt;
         bubble dollars*eng=num / haxis=axis1;                                                                                          &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                 &lt;BR /&gt;
ods markup close;                                                                                                                       &lt;BR /&gt;
ods listing;</description>
      <pubDate>Mon, 13 Oct 2008 03:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48697#M6316</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-13T03:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel of GPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48698#M6317</link>
      <description>Part 2 of the script&lt;BR /&gt;
&lt;BR /&gt;
               put " onunload=""shutdown()""";&lt;BR /&gt;
               put " bgproperties=""Fixed""" / if exist( WATERMARK ); &lt;BR /&gt;
                   trigger style_inline; &lt;BR /&gt;
               put "&amp;gt;" NL;&lt;BR /&gt;
               put "&lt;SCRIPT language="" javascript=""&gt;" NL;&amp;lt;br&amp;gt;
               put "&amp;lt;!-- " NL;&amp;lt;br&amp;gt;
               put "// This script is to load all object onLoad() functions " NL;&amp;lt;br&amp;gt;
               put "function startup(){}" NL; &amp;lt;br&amp;gt;
               put "function shutdown(){}" NL;&amp;lt;br&amp;gt;
               put " " NL;&amp;lt;br&amp;gt;
               put "//--&amp;gt;" NL;&amp;lt;br&amp;gt;
               put "&lt;/SCRIPT&gt;" NL;&lt;BR /&gt;
               put NL;&lt;BR /&gt;
              finish:     &lt;BR /&gt;
               put "" NL;&lt;BR /&gt;
             end; &lt;BR /&gt;
             define event image;&lt;BR /&gt;
               put "&lt;IMG /&gt;</description>
      <pubDate>Mon, 13 Oct 2008 03:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48698#M6317</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-13T03:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel of GPLOT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48699#M6318</link>
      <description>Part 3 of the scrip&lt;BR /&gt;
&lt;BR /&gt;
               put " src="""; &lt;BR /&gt;
               put BASENAME / if !exist( NOBASE );&lt;BR /&gt;
               put URL; &lt;BR /&gt;
               put """";&lt;BR /&gt;
               putq " border=" BORDERWIDTH; &lt;BR /&gt;
               put " usemap=""#" @CLIENTMAP;&lt;BR /&gt;
               put """" NL / if exist(BORDERWIDTH,@CLIENTMAP);&lt;BR /&gt;
               putq " class=" HTMLCLASS; &lt;BR /&gt;
               putq " id=" HTMLID;&lt;BR /&gt;
               putq "alt=""this is a test"""; &lt;BR /&gt;
               PUTQ "HEIGHT=400 WIDTH=500"; &lt;BR /&gt;
               put "&amp;gt;" NL;&lt;BR /&gt;
             end; &lt;BR /&gt;
      end;&lt;BR /&gt;
run;&lt;BR /&gt;
          &lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods markup body='test.xls' path='c:\test' tagset=tagsets.test;&lt;BR /&gt;
          &lt;BR /&gt;
          &lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
          &lt;BR /&gt;
Proc gplot data=jobs; &lt;BR /&gt;
         format dollars dollar9.; &lt;BR /&gt;
         bubble dollars*eng=num / haxis=axis1;&lt;BR /&gt;
run;&lt;BR /&gt;
          &lt;BR /&gt;
ods markup close; &lt;BR /&gt;
ods listing;</description>
      <pubDate>Mon, 13 Oct 2008 03:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Output-to-Excel-of-GPLOT/m-p/48699#M6318</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-13T03:18:41Z</dc:date>
    </item>
  </channel>
</rss>

