<?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 excel or not excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546688#M151402</link>
    <description>&lt;P&gt;ods excel file="/home/sasuser/bin/MCDdata.xlsx"&lt;BR /&gt;options(sheet_name="MCD Data"&lt;BR /&gt;sheet_interval='none'&lt;BR /&gt;embedded_titles='yes');&lt;/P&gt;&lt;P&gt;title "Report for Johns Hopkins Medical Services Corporation";&lt;BR /&gt;proc print data = t_mcd noobs;&lt;BR /&gt;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want some kind of condition to decide to crate a .xlsx output or not create one. Please help&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 20:40:53 GMT</pubDate>
    <dc:creator>mauri0623</dc:creator>
    <dc:date>2019-03-27T20:40:53Z</dc:date>
    <item>
      <title>excel or not excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546688#M151402</link>
      <description>&lt;P&gt;ods excel file="/home/sasuser/bin/MCDdata.xlsx"&lt;BR /&gt;options(sheet_name="MCD Data"&lt;BR /&gt;sheet_interval='none'&lt;BR /&gt;embedded_titles='yes');&lt;/P&gt;&lt;P&gt;title "Report for Johns Hopkins Medical Services Corporation";&lt;BR /&gt;proc print data = t_mcd noobs;&lt;BR /&gt;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want some kind of condition to decide to crate a .xlsx output or not create one. Please help&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 20:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546688#M151402</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-03-27T20:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: excel or not excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546696#M151406</link>
      <description>Hi:&lt;BR /&gt;  Unless you're doing some kind of macro program processing, you'd have to do this type of decision or conditional processing before you get to this point. If you mean you want to test t_mcd to see whether it has observations or is empty, then there are previous Forum postings on how to do this.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 27 Mar 2019 20:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546696#M151406</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-27T20:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: excel or not excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546698#M151408</link>
      <description>&lt;P&gt;The code is in a macro already. I just want to say create a excel or don't. Condition "YES" or "NO".&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 20:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546698#M151408</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-03-27T20:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: excel or not excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546705#M151415</link>
      <description>&lt;P&gt;And the condition is provided by what? A parameter of the macro? If so, then just do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;condition. = YES %then %do;
  insert your exporting code here
%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Mar 2019 21:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-or-not-excel/m-p/546705#M151415</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-03-27T21:00:24Z</dc:date>
    </item>
  </channel>
</rss>

