<?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 XML to XLS script not working... any suggestions? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-to-XLS-script-not-working-any-suggestions/m-p/177071#M12578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I found code on the internet to change an xml file to a xls file using a VBS Script.&amp;nbsp; Seems easy enough, but for some reason, it won't actually execute the VBS.&amp;nbsp; The code below creates the VBS code, executes it (supposedly), deletes the VBS, and deletes the original xml file.&amp;nbsp; The VBS writes perfectly and will execute if I double click the file or run in it a cmd window.&amp;nbsp; But, SAS skips over it.&amp;nbsp; It does successfully deletes both the VBS and the xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone see any reason why this wouldn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;DATA&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;_NULL_&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;FILE&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.vbs'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'Set objExcel = CreateObject("Excel.Application")'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.Visible = FALSE'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.DisplayAlerts = FALSE'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'Set objWorkbook = objExcel.Workbooks.Open("&lt;A href="https://communities.sas.com/"&gt;\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.xml&lt;/A&gt;")'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.ActiveWorkbook.SaveAs"\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.xlsx",51'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.ActiveWorkbook.Close'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.Quit'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;X&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;"\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.vbs"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;* This won't execute *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;X&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; del &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;"\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.vbs"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;* Delete VB Script - this works fine! *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;X&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; del "&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;&lt;A href="https://communities.sas.com/"&gt;\\fileserver1\Users\S\SnapRap\2013\SnapRap_wf_today.xml&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;"; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;* Delete XML File - this works fine! *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 20:06:46 GMT</pubDate>
    <dc:creator>stuart_snap</dc:creator>
    <dc:date>2014-02-17T20:06:46Z</dc:date>
    <item>
      <title>XML to XLS script not working... any suggestions?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-to-XLS-script-not-working-any-suggestions/m-p/177071#M12578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I found code on the internet to change an xml file to a xls file using a VBS Script.&amp;nbsp; Seems easy enough, but for some reason, it won't actually execute the VBS.&amp;nbsp; The code below creates the VBS code, executes it (supposedly), deletes the VBS, and deletes the original xml file.&amp;nbsp; The VBS writes perfectly and will execute if I double click the file or run in it a cmd window.&amp;nbsp; But, SAS skips over it.&amp;nbsp; It does successfully deletes both the VBS and the xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone see any reason why this wouldn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;DATA&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;_NULL_&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;FILE&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.vbs'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'Set objExcel = CreateObject("Excel.Application")'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.Visible = FALSE'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.DisplayAlerts = FALSE'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'Set objWorkbook = objExcel.Workbooks.Open("&lt;A href="https://communities.sas.com/"&gt;\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.xml&lt;/A&gt;")'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.ActiveWorkbook.SaveAs"\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.xlsx",51'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.ActiveWorkbook.Close'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;PUT&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;'objExcel.Quit'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;X&lt;/SPAN&gt; &lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;"\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.vbs"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;* This won't execute *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;X&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; del &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;"\\fileserver1\Users\S\Snap Rap\2013\SnapRap_wf_today.vbs"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;* Delete VB Script - this works fine! *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;X&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt; del "&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New';"&gt;&lt;A href="https://communities.sas.com/"&gt;\\fileserver1\Users\S\SnapRap\2013\SnapRap_wf_today.xml&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;"; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;* Delete XML File - this works fine! *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New';"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 20:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-to-XLS-script-not-working-any-suggestions/m-p/177071#M12578</guid>
      <dc:creator>stuart_snap</dc:creator>
      <dc:date>2014-02-17T20:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: XML to XLS script not working... any suggestions?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-to-XLS-script-not-working-any-suggestions/m-p/177072#M12579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; You might want to work with Tech Support on this. I thought that this had to be done with a DDE type of communication scenario, where both SAS and Excel had to be open in order for you to send the commands. Or else, you had to use .NET to make this type of thing work. Tech Support is probably your best bet for a resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 03:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-to-XLS-script-not-working-any-suggestions/m-p/177072#M12579</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-02-18T03:34:06Z</dc:date>
    </item>
  </channel>
</rss>

