<?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: ERROR: Unexpected ERROR from SHRWTSK22 detected by TERMINATE WORK TASK in &amp;quot;SQL&amp;quot;(440) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450688#M113510</link>
    <description>&lt;P&gt;I changed the options to verify that.&lt;/P&gt;&lt;P&gt;options SQLUNDOPOLICY= NONE;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 15:03:25 GMT</pubDate>
    <dc:creator>David_Fuertes</dc:creator>
    <dc:date>2018-04-03T15:03:25Z</dc:date>
    <item>
      <title>ERROR: Unexpected ERROR from SHRWTSK22 detected by TERMINATE WORK TASK in "SQL"(440)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450660#M113498</link>
      <description>&lt;P&gt;Good Morning.&lt;/P&gt;&lt;P&gt;We are having a problem that occurs punctually when performing an insert in SAS tables. Next I show you the log that shows the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;36276&amp;nbsp; proc sql;&lt;BR /&gt;36277&amp;nbsp; insert into Tempmi.Mi_grupos (entity, id_tipo,id_criterio_asignacion, id_grupo, desc_grupo, usucrea, fecdesde,tipo_grupo)&lt;BR /&gt;36277! values (49,2,1,13905,'XXXXXXXX','AAAAAAA',1835946673.608,'G');&lt;BR /&gt;ERROR: Unexpected ERROR from SHRWTSK20 detected by TERMINATE WORK TASK in "SQL"(906):&amp;nbsp; ERROR: Generic critical error.&lt;BR /&gt;ERROR: PROC SQL could not undo this statement if an ERROR were to happen as it could not obtain exclusive access to the data set.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This statement will not execute as the SQL option UNDO_POLICY=REQUIRED is in effect.&lt;BR /&gt;36278&amp;nbsp; quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.07 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This occurs on time and do not know why it should, the library is assigned and mapped to the share but the service is up and running. As you can see, it is a normal insert and the access to the table at that moment is unique due to the action of the described insert.&lt;/P&gt;&lt;P&gt;You can guide us or give some solution to avoid this type of error since the insert of the data is not produced and we lose trace of the records.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450660#M113498</guid>
      <dc:creator>David_Fuertes</dc:creator>
      <dc:date>2018-04-03T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unexpected ERROR from SHRWTSK22 detected by TERMINATE WORK TASK in "SQL"(440)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450680#M113505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per your log states, please check the Undo_Policy Option which specifies whether the SQL procedure keeps or discards updated data if errors occur while the data is being updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Victor.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450680#M113505</guid>
      <dc:creator>victorhugorodmo</dc:creator>
      <dc:date>2018-04-03T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unexpected ERROR from SHRWTSK22 detected by TERMINATE WORK TASK in "SQL"(440)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450681#M113506</link>
      <description>&lt;P&gt;It sounds like this is attempting to modify a table in an external database (guessing because of the reference to SHRWTSK20&amp;nbsp;looks like a server or connection of some sort and way the first error is phrased)&amp;nbsp;and someone else or another process&amp;nbsp;is using the target table in such a manner that your process cannot gain appropriate access ("obtain exclusive access").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As such it is not a code error so much as a timing or process scheduling issue.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450681#M113506</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-03T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unexpected ERROR from SHRWTSK22 detected by TERMINATE WORK TASK in "SQL"(440)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450688#M113510</link>
      <description>&lt;P&gt;I changed the options to verify that.&lt;/P&gt;&lt;P&gt;options SQLUNDOPOLICY= NONE;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unexpected-ERROR-from-SHRWTSK22-detected-by-TERMINATE-WORK/m-p/450688#M113510</guid>
      <dc:creator>David_Fuertes</dc:creator>
      <dc:date>2018-04-03T15:03:25Z</dc:date>
    </item>
  </channel>
</rss>

