<?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: executing a batch file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468780#M30406</link>
    <description>&lt;P&gt;Es necesario ya que SAS&amp;nbsp;&amp;nbsp;no tiene herramientas solidas de monitoreo, es la única solución fiable para el desbloqueo de tablas a menos que SAS&amp;nbsp;al día de hoy ya cuente&amp;nbsp;herramienta o solución- tecnología al tema de bloqueos de tablas ya que por el momento es desastroso.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Con todo ya encontré la solución al llamar al .bat desde SAS&amp;nbsp;&amp;nbsp;solo toca poner la ruta exacta y funciona.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Con todo gracias&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jun 2018 16:35:21 GMT</pubDate>
    <dc:creator>giovannych08</dc:creator>
    <dc:date>2018-06-08T16:35:21Z</dc:date>
    <item>
      <title>executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468135#M30374</link>
      <description>&lt;PRE class="tw-data-text tw-ta tw-text-small"&gt;&lt;SPAN&gt;Good afternoon, I need to run a .bat from SAS EG where I create 2 .txt files.
The same ones that are created empty when executing of SAS EG but if the same .bat is executed from the server from the CMD is executed normally and creates the files with information:

Attached as executing from SAS EG and .bat code&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;x "x:\1prueba.bat &amp;gt; x:\log.txt ";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@echo off&lt;BR /&gt;Handle64 DIM_IP_TP.mdf.0.0.0.spds9 &amp;gt; x:\tabla.txt&lt;BR /&gt;&lt;BR /&gt;for /f "tokens=3,6 skip=5 delims= " %%p in (x:\tabla.txt) do (&lt;BR /&gt;echo %%p %%q &lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Handle64 DIM_IP_TP.data.spds_lock9 &amp;gt; x:\tabla1.txt&lt;BR /&gt;&lt;BR /&gt;for /f "tokens=3,6 skip=5 delims= " %%r in (x:\tabla1.txt) do (&lt;BR /&gt;echo %%r %%s&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;the .bat is to find the sessions (pid) that have taken an SPDS table to then kill the process&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the user with whom I run is the sas admin and server admin&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468135#M30374</guid>
      <dc:creator>giovannych08</dc:creator>
      <dc:date>2018-06-06T17:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468250#M30380</link>
      <description>You can yourself inside out to figure this one out.&lt;BR /&gt;Or, you can ask yourself (as one should do every time when you are tempted to call an external program from SAS) - do I really need to execute this from SAS?&lt;BR /&gt;This seems like a 100% OS environment thing, and solution.</description>
      <pubDate>Thu, 07 Jun 2018 05:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468250#M30380</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-06-07T05:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468638#M30399</link>
      <description>&lt;P&gt;Perhaps there's another side of the story.&lt;/P&gt;
&lt;P&gt;Could it be that you have problem with locking when you try to update the tables?&lt;/P&gt;
&lt;P&gt;If you mainly do inserts you could easily solve this by using Dynamic Locking, and with almost no performance penalty at all.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 10:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468638#M30399</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-06-08T10:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468780#M30406</link>
      <description>&lt;P&gt;Es necesario ya que SAS&amp;nbsp;&amp;nbsp;no tiene herramientas solidas de monitoreo, es la única solución fiable para el desbloqueo de tablas a menos que SAS&amp;nbsp;al día de hoy ya cuente&amp;nbsp;herramienta o solución- tecnología al tema de bloqueos de tablas ya que por el momento es desastroso.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Con todo ya encontré la solución al llamar al .bat desde SAS&amp;nbsp;&amp;nbsp;solo toca poner la ruta exacta y funciona.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Con todo gracias&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 16:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468780#M30406</guid>
      <dc:creator>giovannych08</dc:creator>
      <dc:date>2018-06-08T16:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468786#M30407</link>
      <description>&lt;P&gt;Se aplica la opción &amp;nbsp;&lt;SPAN&gt; Dynamic Locking pero solo eso aplica cuando 2 o mas personas consultan datos (selects) a la tabla mas no cuando una persona ocupa la tabla y otra quiere actualizar, por eso es que se necesita aplicar el .bat no hay otra solución.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Con todo Gracias&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 16:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468786#M30407</guid>
      <dc:creator>giovannych08</dc:creator>
      <dc:date>2018-06-08T16:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468914#M30416</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200828"&gt;@giovannych08&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Was du hier schreibst&amp;nbsp;ist spanisch für mich.&amp;nbsp;&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://communities.sas.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 07:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/468914#M30416</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-06-09T07:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/770573#M39612</link>
      <description>&lt;P&gt;Your problem is because SAS Guide is executing in your operating system instead server operating system. It could be solved only running your .sas from the server with sasbatch user. Try to automatize your code with cron, for example, and your problem will be solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 06:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/770573#M39612</guid>
      <dc:creator>Rodrigo_Aegon</dc:creator>
      <dc:date>2021-09-27T06:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/770585#M39613</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/273162"&gt;@Rodrigo_Aegon&lt;/a&gt;&amp;nbsp; Discussion from 3 years ago!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 09:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/770585#M39613</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-09-27T09:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/770637#M39616</link>
      <description>&lt;P&gt;Yes. I realized it was in September but I didn't check in what year ... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;On the other hand, I don't like having open issues... XD&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 13:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/executing-a-batch-file/m-p/770637#M39616</guid>
      <dc:creator>Rodrigo_Aegon</dc:creator>
      <dc:date>2021-09-27T13:36:17Z</dc:date>
    </item>
  </channel>
</rss>

