<?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 know the status of Teradata table when it is being loaded? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/692727#M211091</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206410"&gt;@kiranragam&lt;/a&gt;&amp;nbsp; - Another option could be to have a loading tracking table (a SAS table or a Teradata table) that records when Teradata loads start and end. Then get every SAS job loading into Teradata to update this tracking table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then use the&amp;nbsp;tracking table to check if Teradata is available for loading or not.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2020 01:21:11 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2020-10-20T01:21:11Z</dc:date>
    <item>
      <title>How to know the status of Teradata table when it is being loaded?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/692485#M210983</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As pert of our requirement we need to load a Teradata table(COMMON_TABLE) from multiple SAS Jobs. I am using PROC APPEND (Multiload=YES TPT=YES)&amp;nbsp; to load the data into Teradata table from a sas dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While JOB-A is loading data into&amp;nbsp;COMMON_TABLE, JOB-B should wait until the JOB-A passed through the loading step. If I can check the status of a table in a SAS program, I would keep the other jobs running concurrently into multiple sleep intervals and can proceed the execution as soon as the table is available to load. Could you please help me if there is way to check the status of a Teradata table while it is being loaded?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried below approach before I post the question here:&lt;/P&gt;&lt;P&gt;#1. While loading data I noticed a temp table _RS is being created, so I kept the existence check of _RS table before loading and tried to keep the job on sleep until the _RS tables get disappeared. But if the job that is loading data gets failed in between then _RS will remain in the database and other jobs will never get executed until _RS table gets deleted manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 11:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/692485#M210983</guid>
      <dc:creator>kiranragam</dc:creator>
      <dc:date>2020-10-19T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the status of Teradata table when it is being loaded?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/692717#M211083</link>
      <description>&lt;P&gt;Surely Job-A creates a log file. Why not check that file?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 22:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/692717#M211083</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-19T22:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the status of Teradata table when it is being loaded?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/692727#M211091</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206410"&gt;@kiranragam&lt;/a&gt;&amp;nbsp; - Another option could be to have a loading tracking table (a SAS table or a Teradata table) that records when Teradata loads start and end. Then get every SAS job loading into Teradata to update this tracking table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then use the&amp;nbsp;tracking table to check if Teradata is available for loading or not.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 01:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/692727#M211091</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-20T01:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the status of Teradata table when it is being loaded?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/693968#M211615</link>
      <description>I have used Sas dataset as a loding track table and it solved the issue. Thank you for your suggestion.</description>
      <pubDate>Sat, 24 Oct 2020 05:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-know-the-status-of-Teradata-table-when-it-is-being-loaded/m-p/693968#M211615</guid>
      <dc:creator>kiranragam</dc:creator>
      <dc:date>2020-10-24T05:55:10Z</dc:date>
    </item>
  </channel>
</rss>

