<?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: Closing Excel Workbook after ODS is utilized to create report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727278#M24913</link>
    <description>&lt;P&gt;You don't say which interface you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Foudation (or Base SAS) there is a system setting that says "View results as generated". If you turn that off then the Excel file, or other destinations, won't open automatically.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 00:24:36 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-03-18T00:24:36Z</dc:date>
    <item>
      <title>Closing Excel Workbook after ODS is utilized to create report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727263#M24911</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am creating a report with ODS Excel.&amp;nbsp; I used proc report and it generate an excel output.&amp;nbsp; The Excel open but doesn't automatically closed.&amp;nbsp; I have to close out the excel manually.&amp;nbsp; Is there a command to close the excel automatically once the ODS Proc Report is generated?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 22:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727263#M24911</guid>
      <dc:creator>ssitharath0420</dc:creator>
      <dc:date>2021-03-17T22:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Closing Excel Workbook after ODS is utilized to create report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727275#M24912</link>
      <description>&lt;P&gt;Hi: &lt;BR /&gt;This is what I tell my students...if you open it, you have to close it. This ALWAYS works for me:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;ods excel&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;file='c:\temp\makereport.xlsx'&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;proc report data=sashelp.shoes(obs=5);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;ods excel&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;close&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;So I'm not sure what you mean when you say "The Excel open but doesn't automatically closed". Can you post your code or your log?&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 23:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727275#M24912</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-03-17T23:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Closing Excel Workbook after ODS is utilized to create report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727278#M24913</link>
      <description>&lt;P&gt;You don't say which interface you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Foudation (or Base SAS) there is a system setting that says "View results as generated". If you turn that off then the Excel file, or other destinations, won't open automatically.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 00:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727278#M24913</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-18T00:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Closing Excel Workbook after ODS is utilized to create report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727581#M24914</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code I am using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel file="\\fenrir\DEVL\sam_s\Standard Opioid ODS Conversion\Summary1.xlsx" options(start_at="1,13"&lt;BR /&gt;frozen_headers="5"&lt;BR /&gt;frozen_rowheaders="3"&lt;BR /&gt;/*autofilter="1-5"*/&lt;BR /&gt;sheet_name="Summary"&lt;BR /&gt;row_repeat="1"&lt;BR /&gt;embedded_titles="yes");&lt;/P&gt;
&lt;P&gt;proc report split='~' data=Table1_Final out=Table1_Final_1 spanrows style(header)=[fontweight=bold background=lightblue foreground=black]&lt;BR /&gt;style(column)={font_face='Calibri' fontsize=11pt};&lt;BR /&gt;column Status P4 P3 P2 P1;&lt;BR /&gt;define Status / Display "";&lt;BR /&gt;define P1 / Analysis "7/1/20 -~ 12/31/2020" style(column)={cellwidth=15% textalign=center just=decimal};&lt;BR /&gt;define P2 / Analysis "4/1/20 -~ 09/30/2020" style(column)={cellwidth=15% textalign=center just=decimal};&lt;BR /&gt;define P3 / Analysis "1/1/20 -~ 06/30/2020" style(column)={cellwidth=15% textalign=center just=decimal};&lt;BR /&gt;define P4 / Analysis "10/1/19 -~ 03/31/2020" style(column)={cellwidth=15% textalign=center just=decimal};&lt;BR /&gt;title1 '# of Members Filling Opioids';&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;compute status;&lt;BR /&gt;if _break_ in ('_RBREAK_') then do;&lt;BR /&gt;Status = 'Total';&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods excel close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is supposed to open the excel and close but for some reason the excel output would not closed.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 21:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727581#M24914</guid>
      <dc:creator>ssitharath0420</dc:creator>
      <dc:date>2021-03-18T21:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Closing Excel Workbook after ODS is utilized to create report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727797#M24915</link>
      <description>Hi:&lt;BR /&gt;  Without your data, no one can test the code. However you say that "IT is supposed to open the excel and close..." but I am confused by what you mean when you say "it". Do you think that SAS is supposed to launch Excel when the output XLSX file is created? Whether Excel opens or not really depends on your interface -- how you are submitting the code. &lt;BR /&gt;&lt;BR /&gt;  As mentioned by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, if you are creating output using the standard Windowing Environment (or Display Manager) then this is controlled by a setting that you (or your Administrator) sets. If you are using Enterprise Guide or SAS Studio, then Excel output does NOT automatically open within those interfaces. &lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 19 Mar 2021 16:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727797#M24915</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-03-19T16:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Closing Excel Workbook after ODS is utilized to create report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727862#M24916</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;, thank you I got it to work by using ODS NORESULT;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 21:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Closing-Excel-Workbook-after-ODS-is-utilized-to-create-report/m-p/727862#M24916</guid>
      <dc:creator>ssitharath0420</dc:creator>
      <dc:date>2021-03-19T21:02:48Z</dc:date>
    </item>
  </channel>
</rss>

