<?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: Stored Process - Output xlsx with multiple sheet to Excel client in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521448#M5835</link>
    <description>&lt;P&gt;I received this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;14        +ods _all_ close;
15        +
16        +ods Excel file=_webout options(sheet_name='Class');
ERROR: Logical name is not available.
ERROR: No body file. EXCEL output will not be created.
17        +	
17       !+ proc print data=sashelp.class;
18        +	run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 13:34:24 GMT</pubDate>
    <dc:creator>gantonaci</dc:creator>
    <dc:date>2018-12-14T13:34:24Z</dc:date>
    <item>
      <title>Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521279#M5832</link>
      <description>&lt;P&gt;I've looked through a few topics like this one, but unfortunately they all seem to be addressing this same problem when running from a webservice. I'm running my Stored Process from Excel 2013 using SAS Add-In for Microsoft Office 7.100.5.6165.&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4M5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the tables with the following code but they show on the same sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an output stream called OUTSTR, but I'm not sure it makes any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Begin EG generated code (do not edit this line);
*
* Stored process registered by
* Enterprise Guide Stored Process Manager V7.1
*
* ====================================================================
* Stored process name: Stored Process for teste
* ====================================================================
*;


*ProcessBody;

%STPBEGIN;

* End EG generated code (do not edit this line);


ODS EXCEL FILE=OutStr OPTIONS(SHEET_NAME="Class");
proc print data=sashelp.class;
run;
ODS EXCEL OPTIONS(SHEET_NAME="Cars");
proc print data=sashelp.CARS;
run;
ODS EXCEL CLOSE;

* Begin EG generated code (do not edit this line);
;*';*";*/;quit;
%STPEND;

* End EG generated code (do not edit this line);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521279#M5832</guid>
      <dc:creator>gantonaci</dc:creator>
      <dc:date>2018-12-14T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521281#M5833</link>
      <description>check sheet_interval options. default is table. You are using the same table. e.g. include sheet_interval='PROC' in the first ODS EXCEL statement's OPTIONS in your example</description>
      <pubDate>Thu, 13 Dec 2018 21:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521281#M5833</guid>
      <dc:creator>johnsville</dc:creator>
      <dc:date>2018-12-13T21:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521439#M5834</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I haven't tested your code but here is what I think is happening:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The STPBEGIN macro opens the HTML destination and directs the output to the _WEBOUT reserved FILEREF.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The EXCEL destination creates a multi-sheet Excel workbook, but it is directed to the output stream, and not returned to the client.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The STPEND macro closes all open ODS destinations.&amp;nbsp; The output that was written to _WEBOUT - HTML created by the two instances of PROC PRINT - is returned to the client and displayed as a single sheet because it is HTML output.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Try this code instead, exactly as it is shown, without STPBEGIN/STPEND:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;

ods Excel file=_webout options(sheet_name='Class');

proc print data=sashelp.class; run; quit;

ods excel options(sheet_name='Cars');

proc print data=sashelp.cars; run; quit;

ods Excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 12:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521439#M5834</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-12-14T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521448#M5835</link>
      <description>&lt;P&gt;I received this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;14        +ods _all_ close;
15        +
16        +ods Excel file=_webout options(sheet_name='Class');
ERROR: Logical name is not available.
ERROR: No body file. EXCEL output will not be created.
17        +	
17       !+ proc print data=sashelp.class;
18        +	run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521448#M5835</guid>
      <dc:creator>gantonaci</dc:creator>
      <dc:date>2018-12-14T13:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521450#M5836</link>
      <description>&lt;P&gt;I got the same result. Both tables in the same sheet.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521450#M5836</guid>
      <dc:creator>gantonaci</dc:creator>
      <dc:date>2018-12-14T13:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521454#M5837</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Is the stored process registered to create "streaming" output?&amp;nbsp; That is what is needed for the _WEBOUT reserved FILEREF to be assigned.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;You don't show your whole log - are you sure that STPBEGIN/STPEND are not included?&amp;nbsp; You likely need to deselect the option to include the macros during a step in the SAS Enterprise Guide Stored Process Wizard.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521454#M5837</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-12-14T13:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521457#M5838</link>
      <description>&lt;P&gt;Sorry, didn't want to clutter the answer and thought the rest was unnecessary (however I just noticed another error that may help explain).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one output stream. It is "XML based data" with "text/xml" content type.&lt;/P&gt;&lt;P&gt;Fileref is OUTSTR with "Allow rewinding stream" checked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The stored process has Stream and Package result capabilities checked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;11 The SAS System 11:45 Friday, December 14, 2018&lt;BR /&gt;&lt;BR /&gt;NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA. &lt;BR /&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M5) &lt;BR /&gt; Licensed to TRIBUNAL DE CONTAS DA UNIAO, Site 70200868.&lt;BR /&gt;NOTE: This session is executing on the Linux 4.1.12-124.16.3.el7uek.x86_64 (LIN X64) platform.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: Updated analytical products:&lt;BR /&gt; &lt;BR /&gt; SAS/STAT 14.3&lt;BR /&gt; SAS/ETS 14.3&lt;BR /&gt;&lt;BR /&gt;NOTE: Additional host information:&lt;BR /&gt;&lt;BR /&gt; Linux LIN X64 4.1.12-124.16.3.el7uek.x86_64 #2 SMP Wed Jun 13 07:40:34 PDT 2018 x86_64 Oracle Linux Server release 7.5 &lt;BR /&gt;&lt;BR /&gt;You are running SAS 9. Some SAS 8 files will be automatically converted &lt;BR /&gt;by the V9 engine; others are incompatible. Please see &lt;BR /&gt;http://support.sas.com/rnd/migration/planning/platform/64bit.html&lt;BR /&gt;&lt;BR /&gt;PROC MIGRATE will preserve current SAS file attributes and is &lt;BR /&gt;recommended for converting all your SAS libraries from any &lt;BR /&gt;SAS 8 release to SAS 9. For details and examples, please see&lt;BR /&gt;http://support.sas.com/rnd/migration/index.html&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This message is contained in the SAS news file, and is presented upon&lt;BR /&gt;initialization. Edit the file "news" in the "misc/base" directory to&lt;BR /&gt;display site-specific news and information in the program log.&lt;BR /&gt;The command line option "-nonews" will prevent this display.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: SAS Initialization used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.00 seconds&lt;BR /&gt; &lt;BR /&gt;NOTE: The autoexec file, /sasconfig/Lev1/SASApp/WorkspaceServer/autoexec.sas, was executed at server initialization.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; SAS Macro Variables:&lt;BR /&gt;&lt;BR /&gt; SYSDBMSG=ODBC: [DataDirect][ODBC lib] Data source name not found and no default driver specified&lt;BR /&gt; SYSDBRC=IM002&lt;BR /&gt; &lt;BR /&gt;_APSLIST=_RESULT,_CLIENTVERSION,_CLIENTMACHINE,_ODSDEST,_ODSSTYLESHEET,_ODSOPTIONS,_TIMEZONE,_GOPT_DEVICE,_CLIENTUSERID,_MSOFFICECLI&lt;BR /&gt;ENT,_CLIENTNAME,_CLIENTUSERNAME,_METAUSER,_ODSM_SR_RAW,_ENCODI&lt;BR /&gt; NG,_ODSSTYLE,_METAPERSON,_ARCHIVE_PATH,_METAFOLDER,_PROGRAM,_CLIENT,_USERNAME,_SECUREUSERNAME&lt;BR /&gt; _ARCHIVE_PATH=TEMPFILE&lt;BR /&gt; _CLIENT=SAS Add-In for Microsoft Office; CLR 4.0.30319.42000; Microsoft Windows NT 6.1.7601 Service Pack 1&lt;BR /&gt; _CLIENTMACHINE=E-087408&lt;BR /&gt; _CLIENTNAME=SAS Add-In for Microsoft Office&lt;BR /&gt; _CLIENTUSERID=antonaci&lt;BR /&gt; _CLIENTUSERNAME=Giuseppe de Abreu Antonaci&lt;BR /&gt; _CLIENTVERSION=7.100.5.6165&lt;BR /&gt; _ENCODING=UTF8&lt;BR /&gt; _GOPT_DEVICE=ACTIVEX&lt;BR /&gt; _METAFOLDER=/User Folders/antonaci(1)/My Folder/&lt;BR /&gt;2 The SAS System 11:45 Friday, December 14, 2018&lt;BR /&gt;&lt;BR /&gt; _METAPERSON=antonaci&lt;BR /&gt; _METAUSER=antonaci&lt;BR /&gt; _MSOFFICECLIENT=Excel&lt;BR /&gt; _ODSDEST=tagsets.sasreport13&lt;BR /&gt; _ODSM_SR_RAW=on&lt;BR /&gt; _ODSOPTIONS=options(rolap="on") &lt;BR /&gt; _ODSSTYLE=EGDefault&lt;BR /&gt; _ODSSTYLESHEET=(URL="file:///D:/Program%20Files/SASHome/x86/SASAddinforMicrosoftOffice/7.1/Styles/AMODefault.css")&lt;BR /&gt; _PROGRAM=/User Folders/antonaci(1)/My Folder/Stored Process for teste&lt;BR /&gt; _REPLAY="&amp;amp;_URL?_sessionid=00000000-0000-0000-0000-000000000000&amp;amp;_program=replay&amp;amp;_entry=&amp;amp;_TMPCAT.."&lt;BR /&gt; _RESULT=PACKAGE_TO_ARCHIVE&lt;BR /&gt; _SECUREUSERNAME=(Process)&lt;BR /&gt; _TIMEZONE=GMT-02:00&lt;BR /&gt; _TMPCAT=APSWORK.TCAT0000&lt;BR /&gt; _USERNAME=(Process)&lt;BR /&gt;&lt;BR /&gt;NOTE: %INCLUDE (level 1) file /sasdata/usuarios/antonaci/Credibilidade_teste/Stored_Process_for_teste.sas is file /sasdata/usuarios/antonaci/Credibilidade_teste/Stored_Process_for_teste.sas.&lt;BR /&gt;3 +ods _all_ close;&lt;BR /&gt;4 +&lt;BR /&gt;5 +ods Excel file=_webout options(sheet_name='Class');&lt;BR /&gt; The SAS System&lt;BR /&gt;&lt;BR /&gt;ERROR: Logical name is not available.&lt;BR /&gt;ERROR: No body file. EXCEL output will not be created.&lt;BR /&gt;6 +&lt;BR /&gt;7 +proc print data=sashelp.class; run;&lt;BR /&gt;&lt;BR /&gt;NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.00 seconds&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;7 !+ quit;&lt;BR /&gt;8 +&lt;BR /&gt;9 +ods excel options(sheet_name='Cars');&lt;BR /&gt;10 +&lt;BR /&gt;11 +proc print data=sashelp.cars; run;&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.00 seconds&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;11 !+ quit;&lt;BR /&gt;12 +&lt;BR /&gt;13 +ods Excel close;&lt;BR /&gt;ERROR: Insufficient authorization to access /sasconfig/Lev1/SASApp/sasexcl.xlsx.&lt;BR /&gt;NOTE: %INCLUDE (level 1) ending.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521457#M5838</guid>
      <dc:creator>gantonaci</dc:creator>
      <dc:date>2018-12-14T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521460#M5839</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Try removing the Package result capability.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521460#M5839</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-12-14T13:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521541#M5840</link>
      <description>&lt;P&gt;Almost!! But I think we are getting somewhere.&lt;/P&gt;&lt;P&gt;Removed the Package result capability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I had to add a third proc print for reasons you will soon understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;

ods Excel file=_webout options(sheet_name='Class');

	proc print data=sashelp.class; run; quit;

ods excel options(sheet_name='Cars');

	proc print data=sashelp.cars; run; quit;

ods excel options(sheet_name='Airline');

	proc print data=sashelp.airline; run; quit;

ods Excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Doesn't matter where I specify my result output I get two outputs in Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select "new workbook" the first output is a new workbook called&amp;nbsp;Workbook8 (or 5, 6, 7 in previous tests, just regular name for new workbook), with one sheet called "Stored Process for teste" and with the "Class" data in it. This is just a opened Excel, there are no files and I have to save it to keep it.&lt;/P&gt;&lt;P&gt;If I select "new worksheet" and specify its name I get the same result in a new worksheet. If I specify a range the same result in the specified range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other output is called "Main.html". It opens in Excel and it has two sheets called "Cars" and "Airlines" with their respective data. This one is an html file saved in a temporary folder "\&amp;lt;user&amp;gt;\Documents\My SAS Files\Add-In for Microsoft Office\_SOA_A5XKMNSB.BC0003I6_601538504"&lt;/P&gt;&lt;P&gt;In the same folder there is a file called "main.log" that I pasted here, maybe it will give you some insight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a last note, I tried deleting the Data Targets output stream, but it changed nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;t11                                                          The SAS System                            14:03 Friday, December 14, 2018
t 
n NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA. 
n NOTE: SAS (r) Proprietary Software 9.4 (TS1M5) 
n       Licensed to TRIBUNAL DE CONTAS DA UNIAO, Site 70200868.
n NOTE: This session is executing on the Linux 4.1.12-124.16.3.el7uek.x86_64 (LIN X64) platform.
d 
d 
d 
n NOTE: Updated analytical products:
n       
n       SAS/STAT 14.3
n       SAS/ETS 14.3
n 
n NOTE: Additional host information:
n 
n  Linux LIN X64 4.1.12-124.16.3.el7uek.x86_64 #2 SMP Wed Jun 13 07:40:34 PDT 2018 x86_64 Oracle Linux Server release 7.5 
n 
d You are running SAS 9. Some SAS 8 files will be automatically converted 
d by the V9 engine; others are incompatible.  Please see 
d http://support.sas.com/rnd/migration/planning/platform/64bit.html
d 
d PROC MIGRATE will preserve current SAS file attributes and is 
d recommended for converting all your SAS libraries from any 
d SAS 8 release to SAS 9.  For details and examples, please see
d http://support.sas.com/rnd/migration/index.html
d 
d 
d This message is contained in the SAS news file, and is presented upon
d initialization.  Edit the file "news" in the "misc/base" directory to
d display site-specific news and information in the program log.
d The command line option "-nonews" will prevent this display.
d 
d 
d 
d 
n NOTE: SAS Initialization used (Total process time):
n       real time           0.00 seconds
n       cpu time            0.00 seconds
n       
n NOTE: The autoexec file, /sasconfig/Lev1/SASApp/WorkspaceServer/autoexec.sas, was executed at server initialization.
d 
d &amp;gt;&amp;gt;&amp;gt; SAS Macro Variables:
d 
d  SYSDBMSG=ODBC: [DataDirect][ODBC lib] Data source name not found and no default driver specified
d  SYSDBRC=IM002
d  
d _APSLIST=_RESULT,_CLIENTVERSION,_CLIENTMACHINE,_ODSDEST,_ODSSTYLESHEET,_ODSOPTIONS,_TIMEZONE,_GOPT_DEVICE,_CLIENTUSERID,_MSOFFICECLI
d ENT,_CLIENTNAME,_CLIENTUSERNAME,_METAUSER,_ODSM_SR_RAW,_ENCODI
d      NG,_ODSSTYLE,_METAPERSON,_METAFOLDER,_PROGRAM,_CLIENT,_USERNAME,_SECUREUSERNAME
d  _CLIENT=SAS Add-In for Microsoft Office; CLR 4.0.30319.42000; Microsoft Windows NT 6.1.7601 Service Pack 1
d  _CLIENTMACHINE=E-087408
d  _CLIENTNAME=SAS Add-In for Microsoft Office
d  _CLIENTUSERID=antonaci
d  _CLIENTUSERNAME=Giuseppe de Abreu Antonaci
d  _CLIENTVERSION=7.100.5.6165
d  _ENCODING=UTF8
d  _GOPT_DEVICE=ACTIVEX
d  _METAFOLDER=/User Folders/antonaci(1)/My Folder/
d  _METAPERSON=antonaci
t12                                                          The SAS System                            14:03 Friday, December 14, 2018
t 
d  _METAUSER=antonaci
d  _MSOFFICECLIENT=Excel
d  _ODSDEST=tagsets.sasreport13
d  _ODSM_SR_RAW=on
d  _ODSOPTIONS=options(rolap="on") 
d  _ODSSTYLE=EGDefault
d  _ODSSTYLESHEET=(URL="file:///D:/Program%20Files/SASHome/x86/SASAddinforMicrosoftOffice/7.1/Styles/AMODefault.css")
d  _PROGRAM=/User Folders/antonaci(1)/My Folder/Stored Process for teste
d  _REPLAY="&amp;amp;_URL?_sessionid=00000000-0000-0000-0000-000000000000&amp;amp;_program=replay&amp;amp;_entry=&amp;amp;_TMPCAT.."
d  _RESULT=STREAM
d  _SECUREUSERNAME=(Process)
d  _TIMEZONE=GMT-02:00
d  _TMPCAT=APSWORK.TCAT0000
d  _USERNAME=(Process)
d 
n NOTE: %INCLUDE (level 1) file /sasdata/usuarios/antonaci/Credibilidade_teste/Stored_Process_for_teste.sas is file /sasdata/usuarios/antonaci/Credibilidade_teste/Stored_Process_for_teste.sas.
s 3         +ods _all_ close;
s 4         +
s 5         +ods Excel file=_webout options(sheet_name='Class');
t1                                                                                          The SAS System
t 
s 6         +
s 7         +	
s 7        !+ proc print data=sashelp.class; run;
n 
n NOTE: There were 19 observations read from the data set SASHELP.CLASS.
n NOTE: PROCEDURE PRINT used (Total process time):
n       real time           0.05 seconds
n       cpu time            0.05 seconds
n       
n 
s 7        !+                                     quit;
s 8         +
s 9         +ods excel options(sheet_name='Cars');
s 10        +
s 11        +	
s 11       !+ proc print data=sashelp.cars; run;
n 
n NOTE: There were 428 observations read from the data set SASHELP.CARS.
n NOTE: PROCEDURE PRINT used (Total process time):
n       real time           2.36 seconds
n       cpu time            2.37 seconds
n       
n 
s 11       !+                                    quit;
s 12        +
s 13        +ods excel options(sheet_name='Airline');
s 14        +
s 15        +	
s 15       !+ proc print data=sashelp.airline; run;
n 
n NOTE: There were 144 observations read from the data set SASHELP.AIRLINE.
n NOTE: PROCEDURE PRINT used (Total process time):
n       real time           0.24 seconds
n       cpu time            0.25 seconds
n       
n 
s 15       !+                                       quit;
s 16        +
t1                                                                                          The SAS System
t 
s 17        +ods&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 16:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521541#M5840</guid>
      <dc:creator>gantonaci</dc:creator>
      <dc:date>2018-12-14T16:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521570#M5841</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I looked through my notes and found that we made changes to STPBEGIN in SAS 9.4M5 and SAS Add-In for Microsoft Office 8.0 to support the Excel destination.&amp;nbsp; Based on your log you are using an old release of the SAS Add-in for Microsoft Office:&lt;/FONT&gt;&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;PRE&gt;&lt;CODE class=" language-sas"&gt;_CLIENTVERSION=7.100.5.6165&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to update your version of the SAS Add-In for Microsoft Office for this to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then set the Package result property on your stored process, and try this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*;
*  Package result capability required.  Does not
*  work with only Stream result.
*;

%let _ODSDEST=Excel;
%let _ODSSTYLE=HTMLBlue;

%let _ODSOPTIONS=options(sheet_name='Class');

%STPBEGIN()

	proc print data=sashelp.class; run; quit;

  ods excel options(sheet_name='Cars');

	proc print data=sashelp.cars; run; quit;

  ods excel options(sheet_name='Retail');

	proc print data=sashelp.retail; run; quit;

%STPEND()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521570#M5841</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-12-14T17:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521593#M5842</link>
      <description>&lt;P&gt;Updated it to version 7.15 HF7 (7.100.5.6182) (32-bit).&lt;/P&gt;&lt;P&gt;It almost worked, but I missing a file extension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the folowing error at the end:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS Add-In for Microsoft Office cannot display the results that were returned.&lt;/P&gt;&lt;P&gt;The results are in a format that is not supported by Microsoft Excel. The results have been saved to "D\&amp;lt;user&amp;gt;\Documents\My SAS Files\Add-In for Microsoft Office\_SOA_A5XKMNSB.BC0003I6_341916613\main"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that folder there is a file "main" without extension and "main.log".&lt;/P&gt;&lt;P&gt;If I change the name of "main" to "main.xlsx" and open it, it works and it is perfect. All three sheets with their names and HTMLBlue style.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main.logis attached (had to change the extension to txt).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 18:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521593#M5842</guid>
      <dc:creator>gantonaci</dc:creator>
      <dc:date>2018-12-14T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521606#M5843</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;You need to upgrade to version 8 of the SAS Add-in for Microsoft Office.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My working version is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;_CLIENTVERSION=8.0.1.2022&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 18:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/521606#M5843</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-12-14T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/522162#M5844</link>
      <description>&lt;P&gt;After removing the package result capabilities the following code did the trick (not perfect, but good enough).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%global _odsdest _odsoptions ; 

%let _odsdest = tagsets.excelXP;
%let _odsoptions =;
%let _odsstyle = HTMLBlue;
%let rv = %sysfunc(appsrv_header(Content-type,application/vnd.ms-excel)); 

ods tagsets.ExcelXP file=_webout style=HTMLBlue options(sheet_name='Class');

	proc print data=sashelp.class; run; quit;

ods tagsets.ExcelXP options(sheet_name='Cars');

	proc print data=sashelp.cars; run; quit;

ods tagsets.ExcelXP options(sheet_name='Airline');

	proc print data=sashelp.airline; run; quit;

ods tagsets.ExcelXP close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get a xml that automatically opens in Excel with all sheets and data.&lt;/P&gt;&lt;P&gt;I will try the other solution, but I still need to get my IT department to update the SAS Add-in, so that may take a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 11:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/522162#M5844</guid>
      <dc:creator>gantonaci</dc:creator>
      <dc:date>2018-12-18T11:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/594143#M5845</link>
      <description>&lt;P&gt;I just want to comment and say thank you!!&amp;nbsp; I have been beating my head against a wall trying to figure out why my code would not work!!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 15:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/594143#M5845</guid>
      <dc:creator>hulksmash</dc:creator>
      <dc:date>2019-10-04T15:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/602221#M5846</link>
      <description>&lt;P&gt;What if I want to mix a table with a proc sgplot graph? Can I output both of those on the same worksheet ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using ods tagsets.excelxp I cannot get the graph to print, nor can I get the extension "xlsx" on the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i use&lt;/P&gt;&lt;P&gt;ods excel file="destination.xlsx";&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get both the chart and graph to print, but when I try to&amp;nbsp; put that into a stored process that is called by VA, I get an error.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 21:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/602221#M5846</guid>
      <dc:creator>cuevasj</dc:creator>
      <dc:date>2019-11-06T21:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Process - Output xlsx with multiple sheet to Excel client</title>
      <link>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/602263#M5847</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The ODS ExcelXP tagset does not support graphic images and only creates a Microsoft Excel XML Spreadsheet file.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The ODS Excel destination supports graphic images and creates Microsoft XLSX files.&amp;nbsp; This paper shows an example of a chart and table in the same worksheet:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;New for SAS® 9.4: Including Text and Graphics in Your Microsoft Excel Workbooks, Part 2 &lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings17/SAS0127-2017.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings17/SAS0127-2017.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What error do you get when you run the code in VA?&amp;nbsp; Can you post the SAS log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 22:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Stored-Process-Output-xlsx-with-multiple-sheet-to-Excel-client/m-p/602263#M5847</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2019-11-06T22:56:01Z</dc:date>
    </item>
  </channel>
</rss>

