<?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 After updating excel sheet SAS Code should run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/After-updating-excel-sheet-SAS-Code-should-run/m-p/912164#M359620</link>
    <description>&lt;P&gt;Dear Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a task that after&amp;nbsp;excel gets updated it should automatically run SAS Code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way that I can do it.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 12:22:48 GMT</pubDate>
    <dc:creator>saikiran_nemani</dc:creator>
    <dc:date>2024-01-19T12:22:48Z</dc:date>
    <item>
      <title>After updating excel sheet SAS Code should run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/After-updating-excel-sheet-SAS-Code-should-run/m-p/912164#M359620</link>
      <description>&lt;P&gt;Dear Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a task that after&amp;nbsp;excel gets updated it should automatically run SAS Code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way that I can do it.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 12:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/After-updating-excel-sheet-SAS-Code-should-run/m-p/912164#M359620</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2024-01-19T12:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: After updating excel sheet SAS Code should run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/After-updating-excel-sheet-SAS-Code-should-run/m-p/912175#M359626</link>
      <description>&lt;P&gt;Probably not easily...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain more of the process?&amp;nbsp; What or who is updating the Excel file, is a person updating it or is there an automated process updating the Excel file?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If an automated process is updating the Excel file, then probably you would want to add a step to that process so that after it updates the Excel file, it invokes a SAS job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a person is updating the Excel file, then I can imagine two options.&amp;nbsp; I'm sure there are more.&amp;nbsp; I'm going to assume that update means saves the .xlsx file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could have a scheduled SAS job (or a powershell job or whatever) that runs every hour (or 10 minutes), and checks the modified date-time of the Excel file to decide if it should process the file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're an excel / VBA&amp;nbsp; / powershell person, you could build an excel&amp;nbsp; button that an Excel user could click, that would execute the Excel save command and then invoke a SAS job.&amp;nbsp; So the user would be responsible for clicking that button. If you have SAS add-on for Microsoft Office, a button like that might be built in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are lots of complexities I don't address here.&amp;nbsp; For example, this assumes your Excel file is on a computer that can see your SAS environment, and vice versa.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 13:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/After-updating-excel-sheet-SAS-Code-should-run/m-p/912175#M359626</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-01-19T13:28:06Z</dc:date>
    </item>
  </channel>
</rss>

