<?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: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562538#M157595</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;for guidance.&lt;/P&gt;&lt;P&gt;Would you please suggest based on experience . how much time we can give on FILELOCKWAIT option for job status datasets.&lt;/P&gt;&lt;P&gt;i guess if we give more time the it will wait for more time .Also the job status libarary is pre-assigned.so do we need to mention this&amp;nbsp; option in SAS SMC or SAS DI please&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 12:46:30 GMT</pubDate>
    <dc:creator>JJP1</dc:creator>
    <dc:date>2019-05-30T12:46:30Z</dc:date>
    <item>
      <title>SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561917#M157370</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We running libname statement which will validate oracle database source connection step in&amp;nbsp; SAS monthly and weekly jobs(parallely job s runs) and updating the job control dataset&lt;BR /&gt;but what is happening is there is some contention issue when parallelely running SAS weekly and monthly jobs and validating oracle database source connection step&amp;nbsp; fails due to contention issues and update status fails for job control status dataset.&lt;/P&gt;&lt;P&gt;please suggest to avoid this issue please&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561917#M157370</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-28T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561921#M157371</link>
      <description>&lt;P&gt;Make one job dependent on the other in the scheduler, so they run in succession.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561921#M157371</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-28T11:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561927#M157373</link>
      <description>&lt;P&gt;Would you please explain more on this as all existing monthly and weekly jobs are running parallely&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561927#M157373</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-28T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561933#M157375</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Would you please explain more on this as all existing monthly and weekly jobs are running parallely&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which they obviously should not. So you need to force them to run in succession, and you best achieve that by making one a logical prerequisite for the other.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 12:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/561933#M157375</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-28T12:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562182#M157465</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;we have below jobs running under flow manager.&lt;/P&gt;&lt;P&gt;Data_Weekly_3 - Mon May 27 03:30:25&lt;BR /&gt;Data_Weekly_2 - Mon May 27 03:30:25&lt;BR /&gt;Data_Weekly_1 - Mon May 27 03:30:25&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data_Monthly_3 - Wed May 01 05:42:31&lt;BR /&gt;Data_Monthly_1 - Wed May 01 05:42:02&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data_Monthly_3- ValidateLibname.sas(one of the node in job flow)&lt;/P&gt;&lt;P&gt;Data_Monthly_1- ValidateLibname.sas&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data_Weekly_3 : ValidateLibname.sas&lt;BR /&gt;Data_Weekly_2 : ValidateLibname.sas&lt;BR /&gt;Data_Weekly_1 : ValidateLibname.sas&lt;/P&gt;&lt;P&gt;So,here the Data_Weekly_3,Data_Weekly_2 and Data_Weekly_1 are running at same time and excuting the first node 'ValidateLibname'&lt;BR /&gt;and causing contention issue when it is updating the job control dataset(which is same for) and finally this fails.&lt;/P&gt;&lt;P&gt;same with Data_Monthly_1 and Data_Monthly_1 jobs also.would you please help on practically whther i can mention sas options/sascode&lt;BR /&gt;to resolve this contention issue please.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562182#M157465</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-29T08:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562183#M157466</link>
      <description>&lt;P&gt;I don't even use the SAS Flow Manager...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I typed "SAS flow manager dependencies" into Google, and got "&lt;SPAN&gt;About 626,000 results".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Perhaps you should read the first few hits?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562183#M157466</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-05-29T08:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562191#M157470</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I understand you've got:&lt;/P&gt;
&lt;P&gt;- some SAS programs executed in parallel (using LSF)&lt;/P&gt;
&lt;P&gt;- a single job control table (a SAS table)&lt;/P&gt;
&lt;P&gt;- each job inserts and/or updates rows in this common job control table&lt;/P&gt;
&lt;P&gt;- a table locking issue due to multiple jobs trying to write access the control table at the same time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If above is correct then what you need/can do:&lt;/P&gt;
&lt;P&gt;1. Ensure that the code inserting/updating rows in the job control table performs really well (=within a second or less)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; - Use SQL INSERT/UPDATE or data step MODIFY/UPDATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;-&amp;nbsp; IF also UPDATE used then have an INDEX on the column used for row selection&lt;/P&gt;
&lt;P&gt;2. Use libname option FILELOCKWAIT with a value like 30 (for 30 seconds). This will make a job wait up to 30 seconds in case of the control table being locked by another job (...which should only lock the table for max a second).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternative to 2.&lt;/P&gt;
&lt;P&gt;Migrate the common control table to Oracle and maintain it there. Oracle supports concurrent read/write access and though there won't be any table locking issues (you still should write well performing code though).&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562191#M157470</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-29T09:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562198#M157473</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Actually i have below jobs running under flow manager.so how can i create logical prerequisite :&lt;BR /&gt;would you please help practically (as i am new to this please&lt;/P&gt;&lt;P&gt;)to resolve the contention issue&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data_Weekly_5&lt;BR /&gt;Data_Weekly_4&lt;BR /&gt;Data_Weekly_3&lt;BR /&gt;Data_Weekly_2&lt;BR /&gt;Data_Weekly_1&lt;/P&gt;&lt;P&gt;Data_Monthly_8&lt;BR /&gt;Data_Monthly_3&lt;BR /&gt;Data_Monthly_2&lt;BR /&gt;Data_Monthly_1&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562198#M157473</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-29T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562216#M157479</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"logical prerequisites" = job dependencies&lt;/P&gt;
&lt;P&gt;It's all fully documented here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/api/docsets/scheduleug/9.4/content/scheduleug.pdf" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/api/docsets/scheduleug/9.4/content/scheduleug.pdf&lt;/A&gt;&amp;nbsp;(page 55 and later)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But: If it's only a problem of control table locking and not about real dependencies like Job A creates a table which is required as input for Job B then don't define dependencies but solve the issue of table locking and write access concurrency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 10:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562216#M157479</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-29T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562231#M157486</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Yes there is no job dependencies. but multiple jobs trying to run the program "validate libname connection" and job_status_table (not control table sorry please )and it is getting failed as there are multiple jobs tried to update the same dataset simultaneously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually job_status_table we are creating under status handling tab (job status where the dataset is creted) in job properties.so this table is getting failed due to contention issue.&lt;/P&gt;&lt;P&gt;because&amp;nbsp;"validate libname connection"&amp;nbsp; job is being used in mentioned weekly and monthly jobs.and the job_status_table is getting failed please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help how can we resolve this issue please&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 12:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562231#M157486</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-29T12:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562233#M157487</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes there is no job dependencies. but multiple jobs trying to run the program "validate libname connection" and job_status_table (not control table sorry please )and it is getting failed as there are multiple jobs tried to update the same dataset simultaneously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually job_status_table we are creating under status handling tab (job status where the dataset is creted) in job properties.so this table is getting failed due to contention issue.&lt;/P&gt;&lt;P&gt;because&amp;nbsp;"validate libname connection"&amp;nbsp; job is being used in mentioned weekly and monthly jobs.and the job_status_table is getting failed please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help how can we resolve this issue please.i am extremely sorry for wrongly conveying the issue please.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 12:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562233#M157487</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-29T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562435#M157552</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you've got somewhere a metadata library definition for the permanent status table. Let's assume this library has a libref called &lt;EM&gt;sref&amp;nbsp;&lt;/EM&gt;and the status table under this library is called&amp;nbsp;&lt;EM&gt;status&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You then have in your DIS job properties under status handling something as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 568px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29871i4A8E6613CC3E8F96/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 497px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29870i983A0F992D81ED40/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you look into the generated code of your DIS job you'll see that there is now a SAS macro called %&lt;EM&gt;etls_sendJobStatus&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this macro the code first creates a SAS WORK table with the status and then inserts the new row to the permanent table using a Proc Append. That's a very fast process and how it needs to be done.&lt;/P&gt;
&lt;P&gt;When running jobs in parallel then it's of course possible that more than one job executes a Proc Append to the status table at exactly the same time. SAS tables don't allow concurrent write access and though the 2nd job will fail.&lt;/P&gt;
&lt;P&gt;There are two ways to resolve this:&lt;/P&gt;
&lt;P&gt;A) Add Libname option FILELOCKWAIT to the SAS metadata library definition (&lt;EM&gt;sref&lt;/EM&gt;). This option makes the 2nd job wait until the status table becomes accessible for write access.&amp;nbsp;&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n07w6un7zadsb4n1mw59odismosv.htm&amp;amp;docsetVersion=3.2&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n07w6un7zadsb4n1mw59odismosv.htm&amp;amp;docsetVersion=3.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;B) Use a libref which points to Oracle (or change the library metadata definition for &lt;EM&gt;sref&lt;/EM&gt;&amp;nbsp;so that it points to Oracle). Oracle allows for concurrent read/write access and though the problem will just go away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what job&amp;nbsp;&lt;EM&gt;validate libname connection&lt;/EM&gt; does. This must be something site specific. For your problem at hand: A SAS table gets also locked for write access if another job reads the data (write needs exclusive access to the table). So, if this job also accesses the job status table then:&lt;/P&gt;
&lt;P&gt;A) If the status table is a SAS table implement code that minimizes the time the status table gets accessed (FILELOCKWAIT still allows for some overlaps).&lt;/P&gt;
&lt;P&gt;B) If the status table is in Oracle then nothing further needs to be done as Oracle allows for concurrency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 23:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562435#M157552</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-29T23:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562503#M157586</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;for understanding my issue.even though i was not clear.&lt;/P&gt;&lt;P&gt;please find below :&lt;/P&gt;&lt;P&gt;There are two ways to resolve this:&lt;/P&gt;&lt;P&gt;A) Add Libname option FILELOCKWAIT to the SAS metadata library definition (sref). This option makes the 2nd job wait until the status table becomes accessible for write access.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Actually if i use FILELOCKWAIT option it will affect all the datasets present in library at library&amp;nbsp;level and i guess team manager would not prefer.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;any option only for that particular dataset itself please&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;B) Use a libref which points to Oracle (or change the library metadata definition for&amp;nbsp;sref&amp;nbsp;so that it points to Oracle). Oracle allows for concurrent read/write access and though the problem will just go away.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Actually we are following all SAS DI Jobs like this process only.for single job changing pointing to oracle and storing under oracle&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;datasource for single job i guess is not prefered by our team&lt;/FONT&gt; .&lt;/P&gt;&lt;P&gt;I don't know what job&amp;nbsp;validate libname connection&amp;nbsp;does. This must be something site specific.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;As part of validate libname connection job we will ensure that external database is ok it is in correct state or not before running jobs that are using this library&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time.Would you please suggest any way please&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 09:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562503#M157586</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-30T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562507#M157589</link>
      <description>&lt;P&gt;"&lt;FONT color="#FF0000"&gt;Actually if i use FILELOCKWAIT option it will affect all the datasets present in library at library&amp;nbsp;level and i guess team manager would not prefer.&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;any option only for that particular dataset itself please&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;Yes, you've got it. ...BUT: I've used FILELOCKWAIT already many times. It doesn't have any negative impact whatsoever except that a locked table doesn't immediately lead to job failure. For that reason I wouldn't set the value for waiting too high so that if locking is not caused by expected behavior a job still fails within reasonable time if there is a permanent lock and doesn't just "hang around waiting".&lt;/P&gt;
&lt;P&gt;I'd make my case and propose FILELOCKWAIT to your manager as it's really a very simple and robust solution to your problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is something I've used for exactly your use case already many times for major implementations. I almost dare to call this "best practice".&lt;/P&gt;
&lt;P&gt;As a personal opinion: Status and control tables should anyway have their own library and with these tables defining FILELOCKWAIT is the right thing to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;FONT color="#FF0000"&gt;Actually we are following all SAS DI Jobs like this process only.for single job changing pointing to oracle and storing under oracle&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;datasource for single job i guess is not prefered by our team&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;I've just given you the options. You don't need to go down this road. This was my preferred option before FILOCKWAIT had been implemented in SAS. I would eventually still consider it for Oracle heavy implementations where also the DIS processes happen mostly in-database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;As part of validate libname connection job we will ensure that external database is ok it is in correct state or not before running jobs that are using this library&lt;/SPAN&gt;&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;Ah, o.k., so that means that this job is highly likely not involved in the issue we're talking about here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Would you please suggest any way please"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can't think of any other option that would be as simple and robust as the two I've already proposed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 22:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562507#M157589</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-30T22:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562538#M157595</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;for guidance.&lt;/P&gt;&lt;P&gt;Would you please suggest based on experience . how much time we can give on FILELOCKWAIT option for job status datasets.&lt;/P&gt;&lt;P&gt;i guess if we give more time the it will wait for more time .Also the job status libarary is pre-assigned.so do we need to mention this&amp;nbsp; option in SAS SMC or SAS DI please&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 12:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562538#M157595</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-30T12:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562548#M157598</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would assume the actual Append operation locks the table significantly less than a second. So even in a worst case scenario 5 seconds should be more than good enough. But then to be on the overly safe side: Does it hurt if a job could potentially wait for 30 seconds for a scenario I can't even think about? If not then that's the value I'd choose: 30 seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use SMC or DIS to change a SAS Metadata Library definition. Using DIS adding FILELOCKWAIT would be done here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 582px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29881i32843F287D29E1F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 22:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562548#M157598</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-30T22:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI  jobs trying to update the same dataset by  multiple SAS jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562558#M157604</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 13:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-jobs-trying-to-update-the-same-dataset-by-multiple-SAS/m-p/562558#M157604</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-30T13:43:27Z</dc:date>
    </item>
  </channel>
</rss>

