<?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 SAS/SHARE -Lock Issue while updating same dataset with multiple process in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-SHARE-Lock-Issue-while-updating-same-dataset-with-multiple/m-p/593504#M170324</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We have different process flows which will update the same dataset at the end of the each code .Some of these processes are overlapping with their run time and causing Lock Issues on dataset which is causing to fail the job.We have SAS/SHARE.I tried to use Modify ,set, Proc sql but nothing worked .Please let me know how this can work with out locking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ex:&amp;nbsp; code1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Option DLCREATEDIR;&lt;BR /&gt;LIBNAME myshr_a BASE "/tmp/" ;&lt;BR /&gt;LIBNAME myshr_b REMOTE HOSTNAME="xxxxx" Server=__1111 slibref=myshr_a USER="&amp;amp;sysuid." PASSWORD="&amp;amp;syspass." ;&lt;/P&gt;&lt;P&gt;%let r=xxxx;&lt;BR /&gt;proc operate id=r.__1111 user="&amp;amp;sysuid." pass="&amp;amp;syspass.";&lt;BR /&gt;display library _all_; run;&lt;/P&gt;&lt;P&gt;libname myshr_r list ;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;data myshr_b.sample;&lt;BR /&gt;modify myshr_b.sample(where =(table_id="abcd" and field_name="sam1" and table_update_dt=today()));&lt;BR /&gt;x=1234567;&lt;BR /&gt;y= 7654321 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;replace;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;code2 :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data myshr_b.sample;&lt;BR /&gt;modify myshr_b.sample(where =(table_id="bcde" and field_name="sam2" and table_update_dt=today()));&lt;BR /&gt;x=1234567;&lt;BR /&gt;y= 7654321 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;replace;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;both code1 and code2 runs at same time .sample dataset should be modified by both codes without&amp;nbsp;&lt;/SPAN&gt;Locking.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 18:27:51 GMT</pubDate>
    <dc:creator>jdveerapaneni</dc:creator>
    <dc:date>2019-10-02T18:27:51Z</dc:date>
    <item>
      <title>SAS/SHARE -Lock Issue while updating same dataset with multiple process</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SHARE-Lock-Issue-while-updating-same-dataset-with-multiple/m-p/593504#M170324</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have different process flows which will update the same dataset at the end of the each code .Some of these processes are overlapping with their run time and causing Lock Issues on dataset which is causing to fail the job.We have SAS/SHARE.I tried to use Modify ,set, Proc sql but nothing worked .Please let me know how this can work with out locking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ex:&amp;nbsp; code1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Option DLCREATEDIR;&lt;BR /&gt;LIBNAME myshr_a BASE "/tmp/" ;&lt;BR /&gt;LIBNAME myshr_b REMOTE HOSTNAME="xxxxx" Server=__1111 slibref=myshr_a USER="&amp;amp;sysuid." PASSWORD="&amp;amp;syspass." ;&lt;/P&gt;&lt;P&gt;%let r=xxxx;&lt;BR /&gt;proc operate id=r.__1111 user="&amp;amp;sysuid." pass="&amp;amp;syspass.";&lt;BR /&gt;display library _all_; run;&lt;/P&gt;&lt;P&gt;libname myshr_r list ;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;data myshr_b.sample;&lt;BR /&gt;modify myshr_b.sample(where =(table_id="abcd" and field_name="sam1" and table_update_dt=today()));&lt;BR /&gt;x=1234567;&lt;BR /&gt;y= 7654321 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;replace;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;code2 :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data myshr_b.sample;&lt;BR /&gt;modify myshr_b.sample(where =(table_id="bcde" and field_name="sam2" and table_update_dt=today()));&lt;BR /&gt;x=1234567;&lt;BR /&gt;y= 7654321 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;replace;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;both code1 and code2 runs at same time .sample dataset should be modified by both codes without&amp;nbsp;&lt;/SPAN&gt;Locking.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 18:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SHARE-Lock-Issue-while-updating-same-dataset-with-multiple/m-p/593504#M170324</guid>
      <dc:creator>jdveerapaneni</dc:creator>
      <dc:date>2019-10-02T18:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/SHARE -Lock Issue while updating same dataset with multiple process</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SHARE-Lock-Issue-while-updating-same-dataset-with-multiple/m-p/593508#M170326</link>
      <description>&lt;P&gt;Do you have an index defined for those three variables?&lt;/P&gt;
&lt;P&gt;Without that the WHERE clause will need to access every observation sequentially to check if the WHERE condition is met.&amp;nbsp; It might be that with an INDEX it can skip trying to read observations that do not meet the where condition.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 18:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SHARE-Lock-Issue-while-updating-same-dataset-with-multiple/m-p/593508#M170326</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-02T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/SHARE -Lock Issue while updating same dataset with multiple process</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SHARE-Lock-Issue-while-updating-same-dataset-with-multiple/m-p/593529#M170338</link>
      <description>&lt;P&gt;Yes with INDEX it worked.Thanks so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 20:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SHARE-Lock-Issue-while-updating-same-dataset-with-multiple/m-p/593529#M170338</guid>
      <dc:creator>jdveerapaneni</dc:creator>
      <dc:date>2019-10-02T20:09:15Z</dc:date>
    </item>
  </channel>
</rss>

