<?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: How to test in code if an in-memory table in Viya has an error before saving in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-test-in-code-if-an-in-memory-table-in-Viya-has-an-error/m-p/837260#M331038</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Would it be possible to clarify what type of error are you trying to test?&lt;BR /&gt;Can your error be an unexpected value in a table or a table coruption?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Smm662002</description>
    <pubDate>Thu, 06 Oct 2022 19:27:22 GMT</pubDate>
    <dc:creator>smm662002</dc:creator>
    <dc:date>2022-10-06T19:27:22Z</dc:date>
    <item>
      <title>How to test in code if an in-memory table in Viya has an error before saving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-test-in-code-if-an-in-memory-table-in-Viya-has-an-error/m-p/832854#M329231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to do a check if an in-memory table in Viya has an error, before saving another table.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;IF the in-memory table has an error THEN I need to drop and reload several tables.&lt;BR /&gt;ELSE save tables to sashdat files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if there is an easy way of testing this in the CAS code. Or maybe in a job/flow scheduling?&lt;/P&gt;&lt;P&gt;I’m working in Viya 3.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some background on why I need this:&lt;BR /&gt;I have three tables containing final results, and one table containing unique keys and a column with a flag that controls which keys to analyze (either “completed” or “toRun”). The flag is temporarily updated in the in-memory table in the CAS code, and if the final tables have errors on the in-memory table, I want to drop this table and reload to get the original status of the flag to analyze those keys again.&lt;BR /&gt;When I just run a save without checking, I risk that some of the tables are saved and some not.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 10:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-test-in-code-if-an-in-memory-table-in-Viya-has-an-error/m-p/832854#M329231</guid>
      <dc:creator>anetteostbo</dc:creator>
      <dc:date>2022-09-12T10:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to test in code if an in-memory table in Viya has an error before saving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-test-in-code-if-an-in-memory-table-in-Viya-has-an-error/m-p/837260#M331038</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Would it be possible to clarify what type of error are you trying to test?&lt;BR /&gt;Can your error be an unexpected value in a table or a table coruption?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Smm662002</description>
      <pubDate>Thu, 06 Oct 2022 19:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-test-in-code-if-an-in-memory-table-in-Viya-has-an-error/m-p/837260#M331038</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2022-10-06T19:27:22Z</dc:date>
    </item>
  </channel>
</rss>

