<?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: Closing all open datasets at once in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548802#M152231</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I have to put SAS to sleep (say 0.5 seconds) at certain spots in the code to avoid errors&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have a process where tables are opening by themselves? Using EG with a process flow and tables are being shown or results?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There's an option in either way to turn off results as they're generated so that when running long programs you don't see the output until you go to it. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 15:09:22 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-04-05T15:09:22Z</dc:date>
    <item>
      <title>Closing all open datasets at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548800#M152229</link>
      <description>&lt;P&gt;Is there a single command to do this or does each dataset have to be specified. I am running into locking issues on our server and until it is upgraded I have to put SAS to sleep (say 0.5 seconds) at certain spots in the code to avoid errors. Any helpful suggestions are welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548800#M152229</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-04-05T15:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Closing all open datasets at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548802#M152231</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I have to put SAS to sleep (say 0.5 seconds) at certain spots in the code to avoid errors&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have a process where tables are opening by themselves? Using EG with a process flow and tables are being shown or results?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There's an option in either way to turn off results as they're generated so that when running long programs you don't see the output until you go to it. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548802#M152231</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-04-05T15:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Closing all open datasets at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548806#M152234</link>
      <description>&lt;P&gt;Most data set locks are unrelated to the server.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;One program is sorting a data set.&amp;nbsp; During the sorting process, another program attempts to read that data set.&lt;/LI&gt;
&lt;LI&gt;One program is reading a data set.&amp;nbsp; During that process, another program attempts to modify that data set.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In those types of situations, there is no way to free up the locked data set until the first program is finished with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some locking situations are environment-specific.&amp;nbsp; For example, the rules/tools for EG might be different than the rules/tools for an IBM mainframe.&amp;nbsp; A few details might help, both about the environment and about the conditions that cause locking.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548806#M152234</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-05T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Closing all open datasets at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548809#M152237</link>
      <description>&lt;P&gt;The environment is Windows 7 Enterprise and I am using EG 7.15. What I am doing is remove interim datasets at the end of some data steps &amp;amp; SQL calls using PROC DATASETS to unclutter the project view. However, I also run into this from time to time in other areas as well. What I've done is to sort any dataset to a new dataset which seems to alleviate most of the errors.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548809#M152237</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-04-05T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Closing all open datasets at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548811#M152238</link>
      <description>&lt;P&gt;Sounds like you are doing the right thing (see the first bullet point above).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second bullet point requires a more difficult fix, as it involves analyzing (and possibly reorganizing) the order of steps in multiple processes to avoid contention for the same data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep fixing what you are fixing.&amp;nbsp; Upgrading to a new server will be largely ineffective, helping only to the extent that the new server can sort data sets faster than the old server.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Closing-all-open-datasets-at-once/m-p/548811#M152238</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-05T15:37:06Z</dc:date>
    </item>
  </channel>
</rss>

