<?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: Update existing data in LASR table in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Update-existing-data-in-LASR-table/m-p/342914#M6667</link>
    <description>&lt;P&gt;&amp;nbsp;Was able to achieve this using Update statement in Data Step.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2017 12:14:50 GMT</pubDate>
    <dc:creator>avinashaecwb</dc:creator>
    <dc:date>2017-03-21T12:14:50Z</dc:date>
    <item>
      <title>Update existing data in LASR table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Update-existing-data-in-LASR-table/m-p/342892#M6666</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have loaded data from a file in LASR server. Take the example data set as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;WRDATE&lt;/TD&gt;&lt;TD&gt;EMPREF&lt;/TD&gt;&lt;TD&gt;Home Cost Ctr&lt;/TD&gt;&lt;TD&gt;Home Department&lt;/TD&gt;&lt;TD&gt;TAS Cost Centre&lt;/TD&gt;&lt;TD&gt;TAS Project&lt;/TD&gt;&lt;TD&gt;TAS Task&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;27-02-2017&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;SALV ADMIN&lt;/TD&gt;&lt;TD&gt;Salvage Bay 7&lt;/TD&gt;&lt;TD&gt;SALV ADMIN&lt;/TD&gt;&lt;TD&gt;TEAM LEADER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28-02-2017&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;SALV ADMIN&lt;/TD&gt;&lt;TD&gt;Salvage Bay 7&lt;/TD&gt;&lt;TD&gt;SALV ADMIN&lt;/TD&gt;&lt;TD&gt;TEAM LEADER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;27-02-2017&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;CGL&lt;/TD&gt;&lt;TD&gt;CGL WH Bay 4&lt;/TD&gt;&lt;TD&gt;TOM TOM&lt;/TD&gt;&lt;TD&gt;SCANNER&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28-02-2017&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;CGL&lt;/TD&gt;&lt;TD&gt;CGL WH Bay 4&lt;/TD&gt;&lt;TD&gt;TOM TOM&lt;/TD&gt;&lt;TD&gt;SCANNER&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I am receiving a file with modified data and I need to update the existing record. Could you please suggest how this can be achieved ? One of the ways is to use Proc Imstat. I created a column "flag" in existing dataset. The new data was laoded in a dataset with flag set as 1. The flag for existing data set was set as 0. Through Proc Imstat, new data was appended to old. And then I deleted data where flag = 0. &lt;STRONG&gt;However&lt;/STRONG&gt;, this would work only if I receive full file always. In my case, i am receiving ONLY modified data in new file. I was looking for a way to update the existing record with new record based on some key parameters. In this case Date, cost centre and Task are my keys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 10:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Update-existing-data-in-LASR-table/m-p/342892#M6666</guid>
      <dc:creator>avinashaecwb</dc:creator>
      <dc:date>2017-03-21T10:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing data in LASR table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Update-existing-data-in-LASR-table/m-p/342914#M6667</link>
      <description>&lt;P&gt;&amp;nbsp;Was able to achieve this using Update statement in Data Step.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 12:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Update-existing-data-in-LASR-table/m-p/342914#M6667</guid>
      <dc:creator>avinashaecwb</dc:creator>
      <dc:date>2017-03-21T12:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing data in LASR table</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Update-existing-data-in-LASR-table/m-p/388231#M7913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar problem. I need to update file, while in memory, but every time I try to modify file with data step I receive message that I have no UPDATE rights.&lt;/P&gt;&lt;P&gt;I can create and delete files, but I can't modify them.&lt;/P&gt;&lt;P&gt;Simple delete rows would be enough, because I am able to append, but somehow LASR does not allow me to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you advise if you had similar problem or how you resolve your problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 17:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Update-existing-data-in-LASR-table/m-p/388231#M7913</guid>
      <dc:creator>jakubniescior</dc:creator>
      <dc:date>2017-08-15T17:41:08Z</dc:date>
    </item>
  </channel>
</rss>

