<?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 include graphics in excel via Stored Process in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/233434#M3846</link>
    <description>&lt;P&gt;The code that I posted works with a SAS Stored Process created using SAS 9.4 M3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vince DelGobbo&lt;/P&gt;
&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 14:52:05 GMT</pubDate>
    <dc:creator>Vince_SAS</dc:creator>
    <dc:date>2015-11-06T14:52:05Z</dc:date>
    <item>
      <title>How to include graphics in excel via Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/114543#M3842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how is it possible to include graphics from Stored Process output to excel. I know that tagset msoffice2k might be key for this problem, but I don't know how to use it either. I think I have tried all what I know (including stream / package -option in Stored Process, content-type etc. ). I have obtained that webpage prompts me the window and asks what I want to do with my excel (open or save). After that in gives warning concerning xml-file named as xls-file. Finally there is a graph in excel and I can click and point those bars but there is a warning sign on that graph that says something like "Graph isn't available now".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate If somebody can help me with this problem. Thank you in advance for your comments and activity!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this kind of code:&lt;/P&gt;&lt;P&gt;----------------------------------&lt;BR /&gt;%macro stylemacro();&lt;BR /&gt;data _null_;&lt;BR /&gt; %if &amp;amp;printoutput eq HTML %then &lt;BR /&gt; %do;&lt;BR /&gt;&amp;nbsp; %let cssstyle = minimal;&lt;BR /&gt; %end;&lt;/P&gt;&lt;P&gt;%if &amp;amp;tulostus eq XLS %then %do;&lt;BR /&gt;&amp;nbsp; %let cssstyle = minimal;&lt;BR /&gt;&amp;nbsp; %let old = %sysfunc(stpsrv_header(Content-type, application/vnd.ms-excel));&lt;BR /&gt;&amp;nbsp; *rc = stpsrv_header('Content-type','application/vnd.ms-excel');&lt;BR /&gt;/*&amp;nbsp; rc = stpsrv_header('Content-disposition','attachment; filename=test.xls');*/&lt;BR /&gt; %end;&lt;/P&gt;&lt;P&gt;%if &amp;amp;printoutput eq PDF or &amp;amp;printoutput eq RTF %then %do;&lt;BR /&gt;&amp;nbsp; %let cssstyle = RTF;&lt;BR /&gt; %end;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro handleParms();&lt;BR /&gt;%let _ODSDEST= &amp;amp;printoutput;&lt;BR /&gt;%if &amp;amp;printoutput eq XLS %then %let _ODSDEST=HTML;&lt;BR /&gt;*%if &amp;amp;printoutput eq XLS %then %let _ODSDEST=TAGSETS.MSOFFICE2K;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro chooseOutput;&lt;BR /&gt;ods &amp;amp;_ODSDEST file=_WEBOUT Style=&amp;amp;cssstyle;&lt;/P&gt;&lt;P&gt;*ods html file=_webout;&lt;/P&gt;&lt;P&gt;options center nodate;&lt;/P&gt;&lt;P&gt;%if &amp;amp;outputOut=table %then %do;&lt;/P&gt;&lt;P&gt;proc tabulate data=sashelp.class ;&lt;/P&gt;&lt;P&gt;class sex ;&lt;SPAN style="font-size: 8pt; font-family: Courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;table sex ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%if &amp;amp;outputOut=graphic %then %do;&lt;/P&gt;&lt;P&gt;proc sort data=sashelp.class out=class; by sex age; run;&lt;/P&gt;&lt;P&gt;proc gchart data=class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar3d age / group=sex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discrete&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nozero&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shape=cylinder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; patternid=group;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend outputOut;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%stylemacro();&lt;BR /&gt;%handleParms();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%stpbegin;&lt;BR /&gt;%outputOut;&lt;BR /&gt;%stpend;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 09:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/114543#M3842</guid>
      <dc:creator>exj</dc:creator>
      <dc:date>2013-10-17T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to include graphics in excel via Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/114544#M3843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have having the same difficulty. Streaming tabular information to Excel is very easy, however, getting any graphical results to go with it is next to impossible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems this topic is not properly discussed. I would love to see a step by step operation of how to stream graphics along with text from the Information Delivery Portal to Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan Och&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 19:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/114544#M3843</guid>
      <dc:creator>NathanOch</dc:creator>
      <dc:date>2015-06-12T19:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to include graphics in excel via Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/114545#M3844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;The Excel destination is available starting in the soon-to-be-released SAS 9.4 Maintenance Level 3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%let RV=%sysfunc(stpsrv_header(Content-type,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%let RV=%sysfunc(stpsrv_header(Content-disposition,attachment; filename= "Class.xlsx"));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ods Excel file=_webout style=Excel;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; proc print data=sashelp.class noobs; run; quit;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; proc gchart data=sashelp.class;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar age / discrete;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; run; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ods Excel close;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Vince DelGobbo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;SAS R&amp;amp;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 12:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/114545#M3844</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2015-06-15T12:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to include graphics in excel via Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/233394#M3845</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;
&lt;P&gt;In SAS 9.4 Maintenance Level 1 ODS EXCEL is experimental. So I used the original code from Vince to look if it is already working the right way.&lt;/P&gt;
&lt;P&gt;I got the following ERROR in the LOG:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;12        +
13        +*ProcessBody;
14        +*  Ende des EG-generierten Codes (diese Zeile nicht bearbeiten);
15        +
16        +
17        +ods _all_ close;
18        +
19        +
20        +%let RV=%sysfunc(stpsrv_header(Content-type,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet));
21        +%let RV=%sysfunc(stpsrv_header(Content-disposition,attachment; filename= "Class.xlsx"));
22        +
23        +
24        +ods Excel file=_webout ;
ERROR: The package file output specification must be the name of a file on disk or a fileref assigned to a file on disk.
ERROR: No body file. EXCEL output will not be created.
25        +  proc print data=sashelp.class noobs; run;
NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.
NOTE: PROCEDURE PRINT used (Total process time):
real time           0.00 seconds
cpu time            0.00 seconds

25       !+                                            quit;
26        +  proc gchart data=sashelp.class;
27        +    vbar age / discrete;
28        +  run;
The SAS System
WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.
28       !+       quit;
NOTE: PROCEDURE GCHART used (Total process time):
real time           0.00 seconds
cpu time            0.00 seconds

29        +
30        +ods Excel close;
31        +
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Is the Maitenance Level the reason it does not work?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I started the Stored Process from the SAS S&lt;STRONG&gt;tatistic Portal.&lt;BR /&gt;&lt;/STRONG&gt;2. The Portal Page does look like the Stored Process is still running, although it stopped by ERROR. Please find the attached picture.&lt;STRONG&gt;&lt;BR /&gt;Could you please help me in understanding the behaviour?&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Thanks in advance&lt;STRONG&gt; Catrin&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/769i30843D1E1DB05546/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Auswahl_185.png" title="Auswahl_185.png" border="0" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 08:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/233394#M3845</guid>
      <dc:creator>Catrin</dc:creator>
      <dc:date>2015-11-06T08:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to include graphics in excel via Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/233434#M3846</link>
      <description>&lt;P&gt;The code that I posted works with a SAS Stored Process created using SAS 9.4 M3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vince DelGobbo&lt;/P&gt;
&lt;P&gt;SAS R&amp;amp;D&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-include-graphics-in-excel-via-Stored-Process/m-p/233434#M3846</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2015-11-06T14:52:05Z</dc:date>
    </item>
  </channel>
</rss>

