<?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: Run sas by multiple people and update same data set?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968317#M376525</link>
    <description>&lt;P&gt;So if the program run&amp;nbsp; 1 hour then what&amp;nbsp; should I write there ?? 60???&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 09:02:01 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2025-06-06T09:02:01Z</dc:date>
    <item>
      <title>Run sas by multiple people and update same data set??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968304#M376520</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Lets say I have a sas program that run long time (1 hour).&lt;/P&gt;
&lt;P&gt;The program should run 48 times (each time with different macro arguments).&lt;/P&gt;
&lt;P&gt;The final result of the run is update of one permanent data set (This data set is saved in a permanent libarary).&lt;/P&gt;
&lt;P&gt;Note-Each run update the &lt;STRONG&gt;&lt;U&gt;same&lt;/U&gt;&lt;/STRONG&gt; data set and add rows to this data set (So this data set is called accumulated data set because each&amp;nbsp; run add it rows)&lt;/P&gt;
&lt;P&gt;My question-&lt;/P&gt;
&lt;P&gt;Is it possible that some people run the same sas program (with different macro arguments) ?&lt;/P&gt;
&lt;P&gt;So ,multiple runs (done by multiple people) update the &lt;STRONG&gt;&lt;U&gt;same&lt;/U&gt;&lt;/STRONG&gt; data set&lt;/P&gt;
&lt;P&gt;Is it possible?&lt;/P&gt;
&lt;P&gt;The idea is to save run time because multiple people run in same time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 21:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968304#M376520</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-06-05T21:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run sas by multiple people and update same data set??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968309#M376522</link>
      <description>&lt;P&gt;Yes this is easily doable and I do this myself a lot. If there is only one permanent SAS library affected then add the&amp;nbsp;FILELOCKWAIT option to your&amp;nbsp; LIBNAME statement like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname MyLibRef 'MyFolderPath' FILELOCKWAIT = 30;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The value you assign to&amp;nbsp;FILELOCKWAIT is the number of seconds you want SAS to wait if someone else is currently updating any dataset in that library. It should be greater than the number of seconds it takes to update your shared dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 22:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968309#M376522</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-06-05T22:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Run sas by multiple people and update same data set??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968316#M376524</link>
      <description>&lt;P&gt;If you're using a SAS Server version then one person could also run multiple sessions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you've got SAS/Connect licensed then you can spawn multiple sessions from a master SAS session - like each session with different parameter values for your macro. Or if xcmd is set then you could also generate and execute batch commands for running multiple sessions in parallel and in batch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 04:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968316#M376524</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-06-06T04:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Run sas by multiple people and update same data set??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968317#M376525</link>
      <description>&lt;P&gt;So if the program run&amp;nbsp; 1 hour then what&amp;nbsp; should I write there ?? 60???&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 09:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968317#M376525</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-06-06T09:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run sas by multiple people and update same data set??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968321#M376527</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So if the program run&amp;nbsp; 1 hour then what&amp;nbsp; should I write there ?? 60???&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not the time it takes to run the program. The time it takes to update the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you said the updates are just adding observation then use PROC APPEND to keep that time as short as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The number is in seconds, so 60 would be one minute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 12:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968321#M376527</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-06-06T12:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Run sas by multiple people and update same data set??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968387#M376548</link>
      <description>&lt;P&gt;Why have manual program runs by multiple people in the first place?&lt;/P&gt;
&lt;P&gt;What you describe is clearly a task for scheduled execution; this means that a single user will run the programs, and the scheduler will have control when the programs run (e.g. at nighttime when system load is low) and how many will run concurrently (avoiding deterioration of performance caused by saturation of resources).&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jun 2025 10:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968387#M376548</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-06-08T10:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Run sas by multiple people and update same data set??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968409#M376559</link>
      <description>&lt;P&gt;Your single dataset update step may look similar to this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1749429807910.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107690i1E1BAEB072777E0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1749429807910.png" alt="SASKiwi_0-1749429807910.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this example the step took a real time of 0.01 seconds. Set FILELOCKWAIT to a value in seconds greater than the real time of your update step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 00:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-sas-by-multiple-people-and-update-same-data-set/m-p/968409#M376559</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-06-09T00:47:54Z</dc:date>
    </item>
  </channel>
</rss>

