<?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 Perform Update in CAS tables ? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/768745#M1281</link>
    <description>HEllo, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5590"&gt;@Edoedoedo&lt;/a&gt;, Have you found any way how to resolve the issue with updating of large data set on the metadata level without the lengthy reloading/recalculation all the data set?&lt;BR /&gt;Really important issue in use.&lt;BR /&gt;Thank you.</description>
    <pubDate>Tue, 21 Sep 2021 11:37:58 GMT</pubDate>
    <dc:creator>mretter</dc:creator>
    <dc:date>2021-09-21T11:37:58Z</dc:date>
    <item>
      <title>How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582078#M508</link>
      <description>&lt;P&gt;I have been Trying to perform updates on CAS tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to perform simple updates in CAS, but not a complex ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc cas;&lt;BR /&gt;cas_table.name ="CI_CUST_CONTACT_HISTORY_STAGE";&lt;BR /&gt;cas_table.where = "CONTACT_MONTH = 201907";&amp;nbsp;&lt;/P&gt;&lt;P&gt;table.fetch /&lt;BR /&gt;table = cas_table;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table.update /&lt;BR /&gt;table=cas_table&lt;BR /&gt;set={&lt;BR /&gt;{var="SEQUENCE_NO", value="SEQUENCE_NO*10"}&lt;BR /&gt;};&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;table.fetch /&lt;BR /&gt;table = cas_table;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i update&amp;nbsp; if i&amp;nbsp;CONTACT_MONTH&amp;nbsp; more than 10000 contact_month&amp;nbsp; in where condition and variable to update&amp;nbsp;SEQUENCE_NO is specific to the contact_month this is a complex update that am unable to do in CAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what i tried to do use a loop that is time consuming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO SCANLOOP;&lt;BR /&gt;/* First obtain the number of */&lt;BR /&gt;/* records in DATALOG */&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;IF 0 THEN SET hdfs_kim.CONTACT_UPD_JULY2019 NOBS=X;&lt;BR /&gt;CALL SYMPUT('RECCOUNT',X);&lt;BR /&gt;STOP;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;/* loop from one to number of */&lt;BR /&gt;/* records */&lt;BR /&gt;%DO I=1 %TO &amp;amp;RECCOUNT;&lt;BR /&gt;/* Advance to the Ith record */&lt;/P&gt;&lt;P&gt;proc cas;&lt;BR /&gt;cas_table.name ="CONTACT_UPD_JULY2019";&lt;BR /&gt;cas_table.where = "contact_key=442276500";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;table.update /&lt;BR /&gt;table=cas_table&lt;BR /&gt;set={&lt;BR /&gt;{var="SEQUENCE_NO", value="SEQUENCE_NO*100"}&lt;BR /&gt;};&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%END;&lt;BR /&gt;%MEND SCANLOOP;&lt;BR /&gt;/* Call SCANLOOP */&lt;BR /&gt;%SCANLOOP;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582078#M508</guid>
      <dc:creator>Rahul_B</dc:creator>
      <dc:date>2019-08-19T11:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582091#M509</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233040"&gt;@Rahul_B&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a good example of how to use &lt;A href="https://go.documentation.sas.com/?docsetId=caspg&amp;amp;docsetVersion=3.4&amp;amp;docsetTarget=p1g8m6530v39wln11rthnxuadv7u.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;table.fetch &amp;amp; table.update&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582091#M509</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-08-19T12:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582095#M510</link>
      <description>&lt;P&gt;i have used the same example used in my code, but i want update columns from one CAS table with another, that provision we dont have if in this example.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582095#M510</guid>
      <dc:creator>Rahul_B</dc:creator>
      <dc:date>2019-08-19T12:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582319#M511</link>
      <description>&lt;P&gt;Have a look at the example I provided in this post, maybe it does what you need. I reads rows from one CAS table and update another CAS table&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Developers/Viya-CAS-tables-for-transactional-applications/m-p/555604/highlight/true#M359" target="_blank"&gt;https://communities.sas.com/t5/Developers/Viya-CAS-tables-for-transactional-applications/m-p/555604/highlight/true#M359&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 06:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582319#M511</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2019-08-20T06:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582419#M512</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt;&amp;nbsp;- your trick worked for smaller dataset but did not worked for the large dataset had perfromance issue&amp;nbsp; and the memory untilisation is increased while running the process.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 13:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/582419#M512</guid>
      <dc:creator>Rahul_B</dc:creator>
      <dc:date>2019-08-20T13:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/589786#M513</link>
      <description>&lt;P&gt;AFAIK, there is no way to massively update a CAS table "in place" (i.e. without dropping it and recreating it), as well as DELETE rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand CAS is for analytical, but I believe it lacks A LOT of database features.&lt;/P&gt;
&lt;P&gt;I really hope that in the next releases the CAS will be more robust from this point of view, we had to rewrite tons of processes that worked correctly in LASR environment (which supports the UPDATE for instance) to implement workarounds for the things that cannot be made in CAS.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 18:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/589786#M513</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2019-09-18T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/768745#M1281</link>
      <description>HEllo, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5590"&gt;@Edoedoedo&lt;/a&gt;, Have you found any way how to resolve the issue with updating of large data set on the metadata level without the lengthy reloading/recalculation all the data set?&lt;BR /&gt;Really important issue in use.&lt;BR /&gt;Thank you.</description>
      <pubDate>Tue, 21 Sep 2021 11:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/768745#M1281</guid>
      <dc:creator>mretter</dc:creator>
      <dc:date>2021-09-21T11:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Perform Update in CAS tables ?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/768751#M1282</link>
      <description>Update is = adding the new columns</description>
      <pubDate>Tue, 21 Sep 2021 12:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-Perform-Update-in-CAS-tables/m-p/768751#M1282</guid>
      <dc:creator>mretter</dc:creator>
      <dc:date>2021-09-21T12:04:49Z</dc:date>
    </item>
  </channel>
</rss>

