<?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: Proc Export procedure stopped working after installing STAT in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600545#M16608</link>
    <description>&lt;P&gt;Thanks, Reeza.&amp;nbsp; I did not change versions (9.3 before and after).&amp;nbsp; It was a fresh install, so there may have been hotfixes that got installed that were not there beforehand.&amp;nbsp; Was there a hotfix that related to proc export?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 21:19:50 GMT</pubDate>
    <dc:creator>mfp</dc:creator>
    <dc:date>2019-10-30T21:19:50Z</dc:date>
    <item>
      <title>Proc Export procedure stopped working after installing STAT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600530#M16605</link>
      <description>&lt;P&gt;I have a simple Proc Export that is looped to create a multi-tabbed spreadsheet.&amp;nbsp; Its worked for years.&amp;nbsp; I recently reinstalled SAS after purchasing SAS/STAT.&amp;nbsp; Now, there is only the last database in a tab.&amp;nbsp; The log shows no errors and that all sheets were created.&amp;nbsp; It looks like each iteration overwrites the previous tab.&amp;nbsp; Worked for years.&amp;nbsp; Any clue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO DOIT(OUTDATA,TAB,OUTEXL);

PROC EXPORT DATA=COMPANY.&amp;amp;RESPONDENT._&amp;amp;SEGMENT._&amp;amp;STAGE._&amp;amp;OUTDATA
            OUTFILE= "&amp;amp;ROOT\&amp;amp;RESPONDENT._&amp;amp;SEGMENT._&amp;amp;STAGE._Margin Analysis_&amp;amp;OUTEXL"
            DBMS=XLSX REPLACE;
     SHEET="&amp;amp;TAB";
RUN;

%MEND DOIT;

%DOIT(conmargins,Margins By CONNUM, &amp;amp;sysdate);
%DOIT(hmwtav,Weighted Average NVs, &amp;amp;sysdate);
%DOIT(tranmarg,A to T Margin, &amp;amp;sysdate);
%DOIT(avgmarg,Standard Margin, &amp;amp;sysdate);
%DOIT(concord,Concordance, &amp;amp;sysdate);
%DOIT(unique,Simple Concordance, &amp;amp;sysdate);
%DOIT(unique2,Unique Concordance, &amp;amp;sysdate);
%DOIT(matches,HM Sales matched to US, &amp;amp;sysdate);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Oct 2019 20:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600530#M16605</guid>
      <dc:creator>mfp</dc:creator>
      <dc:date>2019-10-30T20:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export procedure stopped working after installing STAT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600537#M16606</link>
      <description>Did you update versions of SAS as well? I'm guessing you did and the Excel export has changed. What version of SAS are you on now?&lt;BR /&gt;You may need to remove the REPLACE option from the export now. You can also try ODS EXCEL libname XLSX and see if you get the same behaviour. &lt;BR /&gt;&lt;BR /&gt;I'm a big fan of ODS EXCEL but it does depend on your requirements and data size. It doesn't work well with large data sets.</description>
      <pubDate>Wed, 30 Oct 2019 20:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600537#M16606</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-30T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export procedure stopped working after installing STAT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600545#M16608</link>
      <description>&lt;P&gt;Thanks, Reeza.&amp;nbsp; I did not change versions (9.3 before and after).&amp;nbsp; It was a fresh install, so there may have been hotfixes that got installed that were not there beforehand.&amp;nbsp; Was there a hotfix that related to proc export?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 21:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600545#M16608</guid>
      <dc:creator>mfp</dc:creator>
      <dc:date>2019-10-30T21:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export procedure stopped working after installing STAT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600547#M16609</link>
      <description>&lt;P&gt;I ran it without the REPLACE and got this error message.&amp;nbsp; The spreadsheet now has just the 1st dataset rather than just the last one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Export cancelled.  Output file C:\SAS Data\Quartz\India\Antique\ANTIQUE_INV_BASE1_Margin Analysis_30OCT19.xlsx already exists. Specify REPLACE option
      to overwrite it.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Oct 2019 21:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600547#M16609</guid>
      <dc:creator>mfp</dc:creator>
      <dc:date>2019-10-30T21:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export procedure stopped working after installing STAT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600550#M16610</link>
      <description>&lt;P&gt;Did you really go to the trouble of re-installing SAS and install an 8 year old version?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 21:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600550#M16610</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-30T21:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export procedure stopped working after installing STAT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600574#M16612</link>
      <description>Then, I would recommend talking to SAS tech support. Another possible issue is that with newer versions especially in 9.3 SAS switched to 64 bit and if Excel is 32 bit you may have issues and there's all sorts of things. Given a fresh install I was assuming 9.4. &lt;BR /&gt;&lt;BR /&gt;Ultimately the question is though, do you want to find out why this happens and fix it, or do you want to fix the code to work and move on for now?</description>
      <pubDate>Wed, 30 Oct 2019 22:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Export-procedure-stopped-working-after-installing-STAT/m-p/600574#M16612</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-30T22:35:28Z</dc:date>
    </item>
  </channel>
</rss>

